summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-09-14 13:11:35 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-09-14 13:11:35 +0100
commit59e5f3533bdb3f02d20a2b402fad92c2d56d50d8 (patch)
treeb20773283e3a99eb3eb20f88247bfa3b15fdd1de /compiler/semstmts.nim
parent8b8841a6c1bbabebdfa8394f5fd3bd5f36202017 (diff)
parentd330a72a4565353bd3ad54ade0580d53cd9d5a5d (diff)
downloadNim-59e5f3533bdb3f02d20a2b402fad92c2d56d50d8.tar.gz
Merge branch 'bigbreak' of github.com:Araq/Nimrod into bigbreak
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index aaddc84d0..5cb2eabf8 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -354,7 +354,7 @@ proc semVarOrLet(c: PContext, n: PNode, symkind: TSymKind): PNode =
       def = semExprWithType(c, a.sons[length-1], {efAllowDestructor})
       if typ != nil:
         if typ.isMetaType:
-          def = inferWithMetaType(c, typ, def)
+          def = inferWithMetatype(c, typ, def)
           typ = def.typ
         else:
           # BUGFIX: ``fitNode`` is needed here!