TypeScript/tests/cases/fourslash/getJavaScriptSemanticDiagnostics19.ts
2015-11-13 13:44:57 -08:00

15 lines
No EOL
297 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
//// enum E { }
verify.getSemanticDiagnostics(`[
{
"message": "'enum declarations' can only be used in a .ts file.",
"start": 5,
"length": 1,
"category": "error",
"code": 8015
}
]`);