Closed
Description
Bug Report
π Search Terms
Parameter type prompt error
π Version & Regression Information
4.5.0-beta
4.4.4
β― Playground Link
Playground link with relevant code
π» Code
function demo <T extends unknown = string, B extends unknown = string> (a: T,b: B) {}
demo<boolean>(true, 2) // T: boolean, B: unknown The type has been limited to string, but the prompt is unknown
demo<boolean>(true, '2')
π Actual behavior
π Expected behavior
Show the correct type