Fix tests

This commit is contained in:
Anders Hejlsberg
2016-01-24 13:44:22 -08:00
parent 49dd54e91a
commit ea4e3afd98
4 changed files with 10 additions and 10 deletions

View File

@@ -5,6 +5,6 @@ enum E {
b = 1
}
var x = E;
var x: { a: E; b: E;[x: number]: string; }; // Shouldnt error
var x: { readonly a: E; readonly b: E; readonly [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
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