12 lines
485 B
Plaintext
12 lines
485 B
Plaintext
tests/cases/compiler/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'.
|
|
|
|
|
|
==== tests/cases/compiler/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'. |