Skip to content

Commit a400a8a

Browse files
committed
Add regression test
1 parent 5e1d490 commit a400a8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
type Test<T extends string = T> = { value: T };
1+
type Test<T extends string = T> = { value: T }; // Error
22

33
let zz: Test = { foo: "abc" }; // should error on comparison with Test<string>
44

5-
let zzy: Test = { value: {} }; // should error
5+
let zzy: Test = { value: {} };
6+
7+
// Simplified repro from #28873
8+
9+
class C1<T extends C1 = any> {}
10+
11+
class C2<T extends C2<any> = any> {}

0 commit comments

Comments
 (0)