mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
523 B
Plaintext
13 lines
523 B
Plaintext
duplicateLocalVariable4.ts(6,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'typeof E', but here has type 'E'.
|
|
|
|
|
|
==== duplicateLocalVariable4.ts (1 errors) ====
|
|
enum E{
|
|
a
|
|
}
|
|
|
|
var x = E;
|
|
var x = E.a;
|
|
~
|
|
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'typeof E', but here has type 'E'.
|
|
!!! related TS6203 duplicateLocalVariable4.ts:5:5: 'x' was also declared here. |