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
Thanks for the reports. As mentioned on the Scala 2 ticket, the type of the expression is Any (because if/else takes the expected type if there is one), but maybe expressions with arms can be special-cased. Edit: the tree type is a union of the arms.
Activity
som-snytt commentedon Jun 13, 2025
Thanks for the reports. As mentioned on the Scala 2 ticket, the type of the expression is
Any
(because if/else takes the expected type if there is one), but maybe expressions with arms can be special-cased. Edit: the tree type is a union of the arms.