2015-03-18 00:56:19 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
2015-11-13 22:44:57 +01:00
|
|
|
// @allowJs: true
|
2015-03-23 22:14:19 +01:00
|
|
|
// @Filename: a.js
|
2015-03-18 00:56:19 +01:00
|
|
|
//// enum E { }
|
|
|
|
|
2016-10-25 01:57:43 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
]`);
|