diff --git a/compiler/ast.nim b/compiler/ast.nim index 167f58d0b9..95aae035d3 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -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 = ""