diff --git a/tests/cases/compiler/typeArgumentDefaultUsesConstraintOnCircularDefault.ts b/tests/cases/compiler/typeArgumentDefaultUsesConstraintOnCircularDefault.ts index b8361ea5714..ca5a270f6e7 100644 --- a/tests/cases/compiler/typeArgumentDefaultUsesConstraintOnCircularDefault.ts +++ b/tests/cases/compiler/typeArgumentDefaultUsesConstraintOnCircularDefault.ts @@ -1,5 +1,11 @@ -type Test = { value: T }; +type Test = { value: T }; // Error let zz: Test = { foo: "abc" }; // should error on comparison with Test -let zzy: Test = { value: {} }; // should error +let zzy: Test = { value: {} }; + +// Simplified repro from #28873 + +class C1 {} + +class C2 = any> {}