Open sunjay opened 7 years ago
Type aliases are declared with the following syntax:
// Declaring `let x: Bar` now creates a variable with the type Foo type Bar = Foo;
To implement this, create a type variant of ScopeItem called TypeAlias with a single field that contains the TypeId that this type alias points to.
ScopeItem
TypeAlias
TypeId
Type aliases are declared with the following syntax:
Implementation Notes
To implement this, create a type variant of
ScopeItem
calledTypeAlias
with a single field that contains theTypeId
that this type alias points to.