-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this
Milestone
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>;
}Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Editor-provided fixes, often called code actions.Effort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Good issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueA PR has been opened for this issueHelp WantedYou can do thisYou can do this