This commit is contained in:
Araq
2015-07-01 01:18:28 +02:00
parent cc57a0430b
commit 4afb8b8043

View File

@@ -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 = ""