Skip to content

Union

Unions only support union of already defined types. Unions support methods.

Definition

supports export

struct Some<T> {
    value: T
}

union Maybe<T> {
    Some<T>
    Null
}