Skip to content

calling $ on enum value crashes nimony #1574

@blackmius

Description

@blackmius
import std / syncio
type A = enum
    off, on
  LevelSetting = array[0..3, A]
var level: LevelSetting
for x in level:
  echo $x

unhandled exception src/lib/nifstreams.nim(233, 3) n.kind in {Symbol, SymbolDef} [AssertionDefect]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions