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
The type inferencer tries to type foo in isolation, but it has no information about x since x is never used. Yet, since foo is called, it should be able to infer from the use-site that x should have type int.
The text was updated successfully, but these errors were encountered:
A program like this one doesn't pass type inference:
The type inferencer tries to type
foo
in isolation, but it has no information aboutx
sincex
is never used. Yet, sincefoo
is called, it should be able to infer from the use-site thatx
should have typeint
.The text was updated successfully, but these errors were encountered: