TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics17.ts

15 lines
302 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
//// function F(a: number) { }
verify.getSyntacticDiagnostics(`[
2015-03-18 00:56:19 +01:00
{
2015-04-02 23:58:43 +02:00
"message": "'types' can only be used in a .ts file.",
2015-03-18 00:56:19 +01:00
"start": 14,
"length": 6,
"category": "error",
"code": 8010
}
]`);