15 lines
No EOL
303 B
TypeScript
15 lines
No EOL
303 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowNonTsExtensions: 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
|
|
}
|
|
]`); |