summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-20 22:39:05 +0100
committerAraq <rumpf_a@web.de>2014-12-20 22:39:05 +0100
commit7deb8b2e7b61a93ee42d5cadbc4170f83ac638a0 (patch)
tree4a0ca22928ee10111513c755a068d028ee9eb90d /compiler
parent00a702baeb4ad5e55811ec7b0fbecafa69ef412a (diff)
downloadNim-7deb8b2e7b61a93ee42d5cadbc4170f83ac638a0.tar.gz
fixed typos so docgen works again
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semexprs.nim2
-rw-r--r--compiler/semstmts.nim1
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim
index ce06c2e77..7a0ae3819 100644
--- a/compiler/semexprs.nim
+++ b/compiler/semexprs.nim
@@ -729,7 +729,7 @@ proc semOverloadedCallAnalyseEffects(c: PContext, n: PNode, nOrig: PNode,
     case callee.kind
     of skMacro, skTemplate: discard
     else:
-      if (callee.kind in skIterators) and (callee.id == c.p.owner.id): 
+      if callee.kind in skIterators and callee.id == c.p.owner.id:
         localError(n.info, errRecursiveDependencyX, callee.name.s)
       if sfNoSideEffect notin callee.flags: 
         if {sfImportc, sfSideEffect} * callee.flags != {}:
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index ab1c47e68..646775aae 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -364,6 +364,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
           # BUGFIX: ``fitNode`` is needed here!
           # check type compability between def.typ and typ        
           def = fitNode(c, typ, def)
+          #changeType(def.skipConv, typ, check=true)
       else:
         typ = skipIntLit(def.typ)
         if typ.kind in {tySequence, tyArray, tySet} and