TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics19.ts

15 lines
298 B
TypeScript
Raw Normal View History

2015-03-18 00:56:19 +01:00
/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
2015-03-18 00:56:19 +01:00
//// enum E { }
verify.getSyntacticDiagnostics(`[
2015-03-18 00:56:19 +01:00
{
2015-04-02 23:58:43 +02:00
"message": "'enum declarations' can only be used in a .ts file.",
2015-03-18 00:56:19 +01:00
"start": 5,
"length": 1,
"category": "error",
"code": 8015
}
]`);