fixes #2935
This commit is contained in:
parent
cc57a0430b
commit
4afb8b8043
1 changed files with 3 additions and 0 deletions
|
|
@ -1486,6 +1486,9 @@ proc getFloat*(a: PNode): BiggestFloat =
|
|||
proc getStr*(a: PNode): string =
|
||||
case a.kind
|
||||
of nkStrLit..nkTripleStrLit: result = a.strVal
|
||||
of nkNilLit:
|
||||
# let's hope this fixes more problems than it creates:
|
||||
result = nil
|
||||
else:
|
||||
internalError(a.info, "getStr")
|
||||
result = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue