Closed
Description
// @strict: true
interface TypeRef<T extends {}> {
x: T,
}
function foo<T>(): TypeRef</**/T> {
throw undefined as any as TypeRef<T>;
}
Run Add `extends` constraint to all type parameters
.
Expected
interface TypeRef<T extends {}> {
x: T,
}
function foo<T extends {}>(): TypeRef<T> {
throw undefined as any as TypeRef<T>;
}
Actual
interface TypeRef<T extends {}> {
x: T,
}
function foo<T extends {} extends {}>(): TypeRef<T> {
throw undefined as any as TypeRef<T>;
}