You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letx: unknown;// reproduces with const tooif(x===5){lety=x.toString(10);}
Expected behavior: x inside of the if block to be of type 5, y to get type of string, everyone happy. Actual behavior: x inside of the if block is still of type unknown, I get an error for x being of type unknown and therefore does not have a property toString. Playground Link: N/A (dev build)