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
When defining an enum which contains another enum, all type-switches are required to address the nested enum by its name. Explicitly only matching one single case is not possible.
This should be changed.
enum Maybe {
Optional
Any
}
// currently possible
type Maybe {
Optional: { => },
Any: { => }
}
// proposal
type Maybe {
Some: { => },
None: { => },
Any: { => }
}
The text was updated successfully, but these errors were encountered:
When defining an enum which contains another enum, all type-switches are required to address the nested enum by its name. Explicitly only matching one single case is not possible.
This should be changed.
The text was updated successfully, but these errors were encountered: