HerringtonDarkholme / typescript-repl

An upgraded TypeScript REPL
210 stars 16 forks source link

enums don't work #32

Closed granteagon closed 6 years ago

granteagon commented 6 years ago

example:

> const enum foo = { Bar }
..
..
You typed two blank lines! start new command
>
undefined
> foo
Cannot find name 'foo'.
> enum foo = { Bar }
..
..
You typed two blank lines! start new command
> foo
Cannot find name 'foo'.
HerringtonDarkholme commented 6 years ago

enums syntax is

const enum foo { Bar }

foo.Bar

screen shot 2018-04-12 at 10 43 54 am