diff options
Diffstat (limited to 'compiler/semstmts.nim')
-rwxr-xr-x | compiler/semstmts.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index ace73422d..5e2be5e9f 100755 --- a/compiler/semstmts.nim +++ b/compiler/semstmts.nim @@ -876,7 +876,9 @@ proc semMethod(c: PContext, n: PNode): PNode = # XXX this not really correct way to do it: Perhaps it should be done after # generic instantiation. Well it's good enough for now: - if not hasObjParam: + if hasObjParam: + methodDef(s, false) + else: LocalError(n.info, errXNeedsParamObjectType, "method") proc semConverterDef(c: PContext, n: PNode): PNode = |