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
From user perspective I believe unknown behaves like an alias for the second type. So another way of looking at this problem is that given f1's signature, it's hard to explain why to someone to need to switch it to f2's signature based on whether the body needs narrowing.
Actual behavior:
f1 invalid on the toString, Object is of type 'unknown'.
Also running into this when dealing with JSON, as the result of unmarshaling is reasonably unknown, and result ? result.toString() : "" doesn't type check...
Activity
taralx commentedon Apr 5, 2022
Also running into this when dealing with JSON, as the result of unmarshaling is reasonably
unknown, andresult ? result.toString() : ""doesn't type check...DanielRosenwasser commentedon May 18, 2022
PR is out at #49119