This commit is contained in:
Yuriy Glukhov 2018-01-25 06:26:40 +03:00 • committed by Andreas Rumpf
commit 0b9c1da1c0
2 changed files with 48 additions and 42 deletions

View file

@ -35,7 +35,7 @@ proc isUndefined[T](x: T): bool {.inline.} = {.emit: "`result` = `x` === undefin
proc reprEnum(e: int, typ: PNimType): string {.compilerRtl.} =
if not typ.node.sons[e].isUndefined:
result = $typ.node.sons[e].name
result = makeNimstrLit(typ.node.sons[e].name)
else:
result = $e & " (invalid data!)"