TypeScript/tests/cases/fourslash/getJavaScriptSyntacticDiagnostics3.ts

11 lines
242 B
TypeScript

/// <reference path="fourslash.ts" />
// @allowJs: true
// @Filename: a.js
////class C<[|T|]> { }
verify.getSyntacticDiagnostics([{
message: "'type parameter declarations' can only be used in a .ts file.",
code: 8004
}]);