diff --git a/compiler/cgmeth.nim b/compiler/cgmeth.nim index 8fe8f225c0..4940a9093a 100644 --- a/compiler/cgmeth.nim +++ b/compiler/cgmeth.nim @@ -50,6 +50,7 @@ proc methodCall*(n: PNode; conf: ConfigRef): PNode = # replace ordinary method by dispatcher method: let disp = getDispatcher(result[0].sym) if disp != nil: + result[0].typ = disp.typ result[0].sym = disp # change the arguments to up/downcasts to fit the dispatcher's parameters: for i in 1..