mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 04:17:34 -06:00
Add regression test
This commit is contained in:
parent
5e1d490e58
commit
a400a8afec
@ -1,5 +1,11 @@
|
||||
type Test<T extends string = T> = { value: T };
|
||||
type Test<T extends string = T> = { value: T }; // Error
|
||||
|
||||
let zz: Test = { foo: "abc" }; // should error on comparison with Test<string>
|
||||
|
||||
let zzy: Test = { value: {} }; // should error
|
||||
let zzy: Test = { value: {} };
|
||||
|
||||
// Simplified repro from #28873
|
||||
|
||||
class C1<T extends C1 = any> {}
|
||||
|
||||
class C2<T extends C2<any> = any> {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user