instanceof
narrows to never
on else
branch for Function
extending class
#52571
Labels
Milestone
Bug Report
π Search Terms
insatnceof extends function
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
o
isnever
on the else branch. causing an errorπ Expected behavior
o
isPerson | Car
as it was in 4.9 since the type guard doesn't really say a lot about the type ofo
in the type system.The text was updated successfully, but these errors were encountered: