TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics16.ts

15 lines
291 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(p?) { }
verify.getSyntacticDiagnostics(`[
2015-03-18 00:56:19 +01:00
{
2015-04-02 23:58:43 +02:00
"message": "'?' can only be used in a .ts file.",
2015-03-18 00:56:19 +01:00
"start": 12,
"length": 1,
"category": "error",
2015-05-28 19:14:18 +02:00
"code": 8009
2015-03-18 00:56:19 +01:00
}
]`);