35 lines
No EOL
1.3 KiB
Text
35 lines
No EOL
1.3 KiB
Text
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_0.ts (0 errors) ====
|
|
var x = 3;
|
|
var y = "";
|
|
|
|
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_1.ts (1 errors) ====
|
|
var x = true;
|
|
~
|
|
!!! Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'boolean'.
|
|
var z = 3;
|
|
|
|
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_2.ts (3 errors) ====
|
|
var x = "";
|
|
~
|
|
!!! Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'string'.
|
|
var y = 3;
|
|
~
|
|
!!! Subsequent variable declarations must have the same type. Variable 'y' must be of type 'string', but here has type 'number'.
|
|
var z = false;
|
|
~
|
|
!!! Subsequent variable declarations must have the same type. Variable 'z' must be of type 'number', but here has type 'boolean'.
|
|
|
|
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_3.ts (0 errors) ====
|
|
var x = 0;
|
|
var y = "";
|
|
var z = 0;
|
|
|
|
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_4.ts (0 errors) ====
|
|
module P { }
|
|
import p = P;
|
|
var q;
|
|
|
|
==== tests/cases/compiler/duplicateVarsAcrossFileBoundaries_5.ts (0 errors) ====
|
|
module Q { }
|
|
import q = Q;
|
|
var p; |