fixes #2401
This commit is contained in:
parent
117903a6ae
commit
94f2d639b1
2 changed files with 12 additions and 1 deletions
|
|
@ -1962,7 +1962,7 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
|
|||
var sym = n.sym
|
||||
case sym.kind
|
||||
of skMethod:
|
||||
if sym.getBody.kind == nkEmpty or sfDispatcher in sym.flags:
|
||||
if {sfDispatcher, sfForward} * sym.flags != {}:
|
||||
# we cannot produce code for the dispatcher yet:
|
||||
fillProcLoc(sym)
|
||||
genProcPrototype(p.module, sym)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue