TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics4.ts

15 lines
295 B
TypeScript
Raw Normal View History

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