fixes yet another option type
This commit is contained in:
parent
e4e87f1cb2
commit
62a10df765
3 changed files with 61 additions and 8 deletions
|
|
@ -385,8 +385,8 @@ proc mutateType(t: PType, iter: TTypeMutator, closure: PObject): PType =
|
|||
|
||||
proc valueToString(a: PNode): string =
|
||||
case a.kind
|
||||
of nkCharLit..nkUInt64Lit: result = $(a.intVal)
|
||||
of nkFloatLit..nkFloat128Lit: result = $(a.floatVal)
|
||||
of nkCharLit..nkUInt64Lit: result = $a.intVal
|
||||
of nkFloatLit..nkFloat128Lit: result = $a.floatVal
|
||||
of nkStrLit..nkTripleStrLit: result = a.strVal
|
||||
else: result = "<invalid value>"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue