TypeScript/tests/cases/compiler/jsFileCompilationDuplicateVariable.ts

8 lines
205 B
TypeScript

// @allowJs: true
// @out: out.js
// @declaration: true
// @filename: a.ts
var x = 10;
// @filename: b.js
var x = "hello"; // No error is recorded here and declaration file will show this as number