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
Follow up for #300 — original issue mentioned case of enum being null and then being switched over. The problem is actually much deeper and, currently, it's pretty hard to solve without major reworking of expression type derivation to include nullability tracking.
Java allows switching over String or boxed integers (like Integer, Long), which can be null due to:
Follow up for #300 — original issue mentioned case of enum being null and then being switched over. The problem is actually much deeper and, currently, it's pretty hard to solve without major reworking of expression type derivation to include nullability tracking.
Java allows switching over
String
or boxed integers (likeInteger
,Long
), which can be null due to:if
failingtype
switching match failed without default caseA very simple repro:
This issue will acts as a reminder, may be we'll return to it one day.
The text was updated successfully, but these errors were encountered: