diff options
Diffstat (limited to 'nim/sigmatch.pas')
-rw-r--r-- | nim/sigmatch.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nim/sigmatch.pas b/nim/sigmatch.pas index 96001ed90..741052f05 100644 --- a/nim/sigmatch.pas +++ b/nim/sigmatch.pas @@ -570,9 +570,10 @@ begin result := copyTree(arg); result.typ := getInstantiatedType(c, arg, m, f); // BUG: f may not be the right key! - if (skipVarGeneric(f).kind in [tyTuple, tyOpenArray]) then + if (skipVarGeneric(result.typ).kind in [tyTuple, tyOpenArray]) then // BUGFIX: must pass length implicitely result := implicitConv(nkHiddenStdConv, f, copyTree(arg), m, c); + // BUGFIX: use ``result.typ`` and not `f` here end; isEqual: begin inc(m.exactMatches); |