Update tests

This commit is contained in:
Anders Hejlsberg
2017-01-06 17:19:34 -08:00
parent 06aa905d20
commit ee03c0dc87
2 changed files with 4 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
class A<T extends T> {
foo() {
var x: T;
// no error expected below this line
var a = x.foo();
var b = new x(123);
var c = x[1];

View File

@@ -13,7 +13,7 @@ declare let x2: T2<"x">;
let x2x = x2.x;
interface T3<T extends T3<T>> {
x: T["x"]; // Error
x: T["x"];
}
interface T4<T extends T4<T>> {
@@ -25,7 +25,7 @@ class C1 {
}
class C2 {
x: this["y"]; // Error
y: this["z"]; // Error
z: this["x"]; // Error
x: this["y"];
y: this["z"];
z: this["x"];
}