Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Type Aliases #55

Open
sunjay opened this issue Mar 3, 2017 · 0 comments
Open

Type Aliases #55

sunjay opened this issue Mar 3, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Mar 3, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant