mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
45 lines
2.4 KiB
Plaintext
45 lines
2.4 KiB
Plaintext
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) ====
|
|
namespace P { }
|
|
import p = P;
|
|
var q;
|
|
|
|
==== duplicateVarsAcrossFileBoundaries_5.ts (0 errors) ====
|
|
namespace Q { }
|
|
import q = Q;
|
|
var p; |