brain icon indicating copy to clipboard operation
brain copied to clipboard

Type Aliases

Open sunjay opened this issue 9 years ago • 0 comments

Type aliases are declared with the following syntax:

// Declaring `let x: Bar` now creates a variable with the type Foo
type Bar = Foo;

Implementation Notes

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.

sunjay avatar Mar 03 '17 08:03 sunjay