Closed emdash closed 3 years ago
The current syntax understands only "|" as an operator. So, you must write
type Quux: Foo | Bar | Baz;
It actually makes more sense to write type unions like this, when spread across multiple lines:
type Quux: | Foo | Bar | Baz ;
FlowJS and other languages support this syntax, and uDLang should too.
This is fixed by PR #30
The current syntax understands only "|" as an operator. So, you must write
type Quux: Foo | Bar | Baz;
It actually makes more sense to write type unions like this, when spread across multiple lines:
FlowJS and other languages support this syntax, and uDLang should too.