TypeScript/tests/cases/fourslash/getJavaScriptSemanticDiagnostics16.ts
2015-11-13 13:44:57 -08:00

15 lines
No EOL
290 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
//// function F(p?) { }
verify.getSemanticDiagnostics(`[
{
"message": "'?' can only be used in a .ts file.",
"start": 12,
"length": 1,
"category": "error",
"code": 8009
}
]`);