summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 46d5704e3..90253a691 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -1359,7 +1359,7 @@ proc paramTypesMatchAux(m: var TCandidate, f, argType: PType,
 
     if argType.kind == tyStatic:
       if m.callee.kind == tyGenericBody and
-         argType.len == 0 and
+         argType.n == nil and
          tfGenericTypeParam notin argType.flags:
         return newNodeIT(nkType, argOrig.info, makeTypeFromExpr(c, arg))
     else: