1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
duplicateVarsAcrossFileBoundaries_1.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'boolean'.
duplicateVarsAcrossFileBoundaries_2.ts(1,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'string'.
duplicateVarsAcrossFileBoundaries_2.ts(2,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'y' must be of type 'string', but here has type 'number'.
duplicateVarsAcrossFileBoundaries_2.ts(3,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'number', but here has type 'boolean'.
==== duplicateVarsAcrossFileBoundaries_0.ts (0 errors) ====
var x = 3;
var y = "";
==== duplicateVarsAcrossFileBoundaries_1.ts (1 errors) ====
var x = true;
~
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'boolean'.
!!! related TS6203 duplicateVarsAcrossFileBoundaries_0.ts:1:5: 'x' was also declared here.
var z = 3;
==== duplicateVarsAcrossFileBoundaries_2.ts (3 errors) ====
var x = "";
~
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'number', but here has type 'string'.
!!! related TS6203 duplicateVarsAcrossFileBoundaries_0.ts:1:5: 'x' was also declared here.
var y = 3;
~
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'y' must be of type 'string', but here has type 'number'.
!!! related TS6203 duplicateVarsAcrossFileBoundaries_0.ts:2:5: 'y' was also declared here.
var z = false;
~
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'z' must be of type 'number', but here has type 'boolean'.
!!! related TS6203 duplicateVarsAcrossFileBoundaries_1.ts:2:5: 'z' was also declared here.
==== duplicateVarsAcrossFileBoundaries_3.ts (0 errors) ====
var x = 0;
var y = "";
var z = 0;
==== duplicateVarsAcrossFileBoundaries_4.ts (0 errors) ====
module P { }
import p = P;
var q;
==== duplicateVarsAcrossFileBoundaries_5.ts (0 errors) ====
module Q { }
import q = Q;
var p;
|