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
variant V {
struct A { a : Int }
}
match v {
V::A a => a // has type `V::A` here, which is `struct { a : int }`
}
but to make it work properly I need full subtyping, and I'd rather not. This means switching to pattern matching that has to extract the fields and bind them to local variables.
The text was updated successfully, but these errors were encountered:
The idea was cute:
but to make it work properly I need full subtyping, and I'd rather not. This means switching to pattern matching that has to extract the fields and bind them to local variables.
The text was updated successfully, but these errors were encountered: