neugram / ng

scripting language integrated with Go
https://neugram.io
BSD 2-Clause "Simplified" License
916 stars 43 forks source link

ng: implement iota #234

Open sbinet opened 6 years ago

sbinet commented 6 years ago

the following fails in ng:

ng> type Options int32
ng> const (
..> OptNone      Options = 1 << iota // default
..> WithXErrBars                     // enable display of X-error bars (if available)
..> WithYErrBars                     // enable display of Y-error bars (if available)
..> )
ng: typecheck: undeclared identifier: iota