mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
fixes #261
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user