15 lines
No EOL
309 B
TypeScript
15 lines
No EOL
309 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @allowNonTsExtensions: true
|
|
// @Filename: a.js
|
|
//// import a = b;
|
|
|
|
verify.getSemanticDiagnostics(`[
|
|
{
|
|
"message": "'import ... =' can only be used in a .ts file.",
|
|
"start": 0,
|
|
"length": 13,
|
|
"category": "error",
|
|
"code": 8002
|
|
}
|
|
]`); |