TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics11.ts

11 lines
230 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
////function F(): [|number|] { }
verify.getSyntacticDiagnostics([{
message: "'types' can only be used in a .ts file.",
code: 8010
}]);