From 4afb8b8043ab4c92c3ac69da3f6b5fc0a136e41a Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 1 Jul 2015 01:18:28 +0200 Subject: [PATCH] fixes #2935 --- compiler/ast.nim | 3 +++ 1 file changed, 3 insertions(+) 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 = ""