Skip to content

Commit ee03c0d

Browse files
committed
Update tests
1 parent 06aa905 commit ee03c0d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tests/cases/compiler/typeParameterWithInvalidConstraintType.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
class A<T extends T> {
22
foo() {
33
var x: T;
4-
// no error expected below this line
54
var a = x.foo();
65
var b = new x(123);
76
var c = x[1];

tests/cases/conformance/types/keyof/circularIndexedAccessErrors.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare let x2: T2<"x">;
1313
let x2x = x2.x;
1414

1515
interface T3<T extends T3<T>> {
16-
x: T["x"]; // Error
16+
x: T["x"];
1717
}
1818

1919
interface T4<T extends T4<T>> {
@@ -25,7 +25,7 @@ class C1 {
2525
}
2626

2727
class C2 {
28-
x: this["y"]; // Error
29-
y: this["z"]; // Error
30-
z: this["x"]; // Error
28+
x: this["y"];
29+
y: this["z"];
30+
z: this["x"];
3131
}

0 commit comments

Comments
 (0)