TypeScript/tests/cases/compiler/typeOfEnumAndVarRedeclarations.ts
Anders Hejlsberg ea4e3afd98 Fix tests
2016-01-24 13:44:22 -08:00

10 lines
326 B
TypeScript

enum E {
a
}
enum E {
b = 1
}
var x = E;
var x: { readonly a: E; readonly b: E; readonly [x: number]: string; }; // Shouldnt error
var y = E;
var y: { readonly a: E; readonly b: E; readonly [x: number]: string; readonly [x: number]: string } // two errors: the types are not identical and duplicate signatures