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

15 lines
No EOL
296 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: 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
}
]`);