summary refs log tree commit diff stats
path: root/compiler/sigmatch.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-01-11 00:44:33 +0200
committerZahary Karadjov <zahary@gmail.com>2017-01-11 00:44:52 +0200
commit28005cf02de5a200c3a965849b5ce124aa1b628a (patch)
treed5dd342e77736208527fd43947f9c865d0d62d5b /compiler/sigmatch.nim
parentc86988491f80f9448b7505ea0c530f769bac7366 (diff)
downloadNim-28005cf02de5a200c3a965849b5ce124aa1b628a.tar.gz
alternative fix for #4884; fixes tlateboundstatic
Diffstat (limited to 'compiler/sigmatch.nim')
-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: