summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-03-04 18:50:08 +0100
committerAraq <rumpf_a@web.de>2013-03-04 18:50:08 +0100
commitcbf82cad7dd4606093ad1636a2adab079a1f8bce (patch)
tree5b0e5069e01aa6c53f3be0a15d464afa8d30677e /compiler
parent4b0cdc6db75ca9ef8499bbadbff2892b950773dd (diff)
downloadNim-cbf82cad7dd4606093ad1636a2adab079a1f8bce.tar.gz
made some tests green
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/evals.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/evals.nim b/compiler/evals.nim
index d9b03137d..3825bbb6c 100755
--- a/compiler/evals.nim
+++ b/compiler/evals.nim
@@ -249,7 +249,7 @@ proc getNullValueAux(obj: PNode, result: PNode) =
   else: InternalError(result.info, "getNullValueAux")
   
 proc getNullValue(typ: PType, info: TLineInfo): PNode = 
-  var t = skipTypes(typ, abstractRange)
+  var t = skipTypes(typ, abstractRange-{tyTypeDesc})
   result = emptyNode
   case t.kind
   of tyBool, tyEnum, tyChar, tyInt..tyInt64: 
@@ -902,13 +902,13 @@ proc evalParseExpr(c: PEvalContext, n: PNode): PNode =
   if sonsLen(ast) != 1:
     GlobalError(code.info, errExprExpected, "multiple statements")
   result = ast.sons[0]
-  result.typ = newType(tyExpr, c.module)
+  #result.typ = newType(tyExpr, c.module)
 
 proc evalParseStmt(c: PEvalContext, n: PNode): PNode =
   var code = evalAux(c, n.sons[1], {})
   result = parseString(code.getStrValue, code.info.toFilename,
                        code.stringStartingLine)
-  result.typ = newType(tyStmt, c.module)
+  #result.typ = newType(tyStmt, c.module)
  
 proc evalTypeTrait*(n: PNode, context: PSym): PNode =
   ## XXX: This should be pretty much guaranteed to be true