From 28005cf02de5a200c3a965849b5ce124aa1b628a Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 11 Jan 2017 00:44:33 +0200 Subject: [PATCH] alternative fix for #4884; fixes tlateboundstatic --- compiler/sigmatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 46d5704e35..90253a691b 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: