Files

8 lines
287 B
Plaintext

// === Syntax and Semantic Diagnostics ===
/a.js(1,15): error TS8010: Type annotations can only be used in TypeScript files.
==== /a.js (1 errors) ====
function F(a: number) { }
~~~~~~
!!! error TS8010: Type annotations can only be used in TypeScript files.