summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-21 22:57:15 +0100
committerAraq <rumpf_a@web.de>2012-11-21 22:57:15 +0100
commit565dc932fa09757695ffd485aac866025ced68bd (patch)
tree5ddbe540e24e875048abca60451bba057e46ffea /compiler
parent66ae9bc609bc4feeab9c9390a5aba85eefbbb595 (diff)
downloadNim-565dc932fa09757695ffd485aac866025ced68bd.tar.gz
fixes #261
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/ccgexprs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim
index f031e72b0..57d06a988 100755
--- a/compiler/ccgexprs.nim
+++ b/compiler/ccgexprs.nim
@@ -1671,7 +1671,7 @@ proc expr(p: BProc, e: PNode, d: var TLoc) =
     var sym = e.sym
     case sym.Kind
     of skMethod:
-      if sym.getBody.kind == nkEmpty:
+      if sym.getBody.kind == nkEmpty or sfDispatcher in sym.flags:
         # we cannot produce code for the dispatcher yet:
         fillProcLoc(sym)
         genProcPrototype(p.module, sym)