diff options
Diffstat (limited to 'compiler/ccgexprs.nim')
-rwxr-xr-x | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index 5839db2be..c957e0aaa 100755 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -1734,7 +1734,7 @@ proc expr(p: BProc, e: PNode, d: var TLoc) = var sym = e.sym case sym.Kind of skMethod: - if sym.ast.sons[codePos].kind == nkEmpty: + if sym.getBody.kind == nkEmpty: # we cannot produce code for the dispatcher yet: fillProcLoc(sym) genProcPrototype(p.module, sym) |