2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/typeOfEnumAndVarRedeclarations.ts(10,41): error TS2375: Duplicate number index signature.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/typeOfEnumAndVarRedeclarations.ts (1 errors) ====
|
|
|
|
enum E {
|
|
|
|
a
|
|
|
|
}
|
|
|
|
enum E {
|
|
|
|
b = 1
|
|
|
|
}
|
|
|
|
var x = E;
|
|
|
|
var x: { a: E; b: E;[x: number]: string; }; // Shouldnt error
|
|
|
|
var y = E;
|
|
|
|
var y: { a: E; b: E;[x: number]: string;[x: number]: string } // two errors: the types are not identical and duplicate signatures
|
|
|
|
~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2375: Duplicate number index signature.
|