TypeScript/tests/baselines/reference/duplicateLocalVariable4.errors.txt

9 lines
275 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/duplicateLocalVariable4.ts (1 errors) ====
enum E{
a
}
var x = E;
var x = E.a;
~
!!! Subsequent variable declarations must have the same type. Variable 'x' must be of type 'typeof E', but here has type 'E'.