-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptBy DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead
Description
getContextuallyTypedParameterType
should return undefined
instead of any
let x: { f(a, b): any, g(): any } = {
f: (a = "none", b) => a.length,
g: (a = "none", b) { return a.length }
}
For both f
and g
, the parameter a: any
but should be a: string
.
I also ran into this with implemented/inherited functions in PR #6118.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptBy DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadDeprecated - use "Working as Intended" or "Design Limitation" instead