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
Currently in the expression a is b only b may have a context-dependent type (which is inferred from the type of a). This covers the more common form p is null for example, but null is p causes an ambiguous type error.
While having null on the left side looks a bit weird, it is still a valid use case (and there can be other ambiguous-type expressions as well). Need to find a way to enable type inference in both directions.
The text was updated successfully, but these errors were encountered:
Currently in the expression
a is b
onlyb
may have a context-dependent type (which is inferred from the type ofa
). This covers the more common formp is null
for example, butnull is p
causes an ambiguous type error.While having
null
on the left side looks a bit weird, it is still a valid use case (and there can be other ambiguous-type expressions as well). Need to find a way to enable type inference in both directions.The text was updated successfully, but these errors were encountered: