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 solution is to return i32(1) but it's not clear from the error.
I would call that a workaround, not a solution. The compiler's behavior here makes no sense, since it's obvious which sequence of implicit casts should happen to make it all work.
Apologies if this is a duplicate.
Outputs:
The solution is to
return i32(1)
but it's not clear from the error.Also, I think these are usually referred to as "optionals", not "maybes", so the wording could be changed.
The text was updated successfully, but these errors were encountered: