summary refs log tree commit diff stats
path: root/compiler/vtables.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/vtables.nim')
-rw-r--r--compiler/vtables.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vtables.nim b/compiler/vtables.nim
index b9b13badc..928c64dd5 100644
--- a/compiler/vtables.nim
+++ b/compiler/vtables.nim
@@ -10,7 +10,7 @@ proc dispatch(x: Base, params: ...) =
 ]#
   var base = methods[0].ast[dispatcherPos].sym
   result = base
-  var paramLen = base.typ.len
+  var paramLen = base.typ.signatureLen
   var body = newNodeI(nkStmtList, base.info)
 
   var disp = newNodeI(nkIfStmt, base.info)