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
a: Int
a =12b:=match (a) {
casestr: String=>"String"casenum: Int=>"Int"case=>"unknown"
}
"b: %s"printfln(b)
Currently that crashes, as 'a' is cast to an object for some reason. Note that we could be a smart compiler and just yank the rest of the cases - actually it's not very useful code, but there's no reason why it should crash.
The text was updated successfully, but these errors were encountered:
But here's the thing - I kinda think instanceOf should work even on covers, because it's a bit special, like an operator (like new) - that would fix the match case (ha!).
Example:
Currently that crashes, as 'a' is cast to an object for some reason. Note that we could be a smart compiler and just yank the rest of the cases - actually it's not very useful code, but there's no reason why it should crash.
The text was updated successfully, but these errors were encountered: