diff options
author | Araq <rumpf_a@web.de> | 2011-08-16 08:56:53 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-08-16 08:56:53 +0200 |
commit | b0742c5b277aea4ef0564c3e519a998ef867b5f8 (patch) | |
tree | 547cc6d260c1b7c484296b788a23b5da3d9ee221 /compiler/sigmatch.nim | |
parent | f3007cbd728df577dbd22b866afff03b49bcf6bc (diff) | |
download | Nim-b0742c5b277aea4ef0564c3e519a998ef867b5f8.tar.gz |
finally got rid of nkPassAsOpenArray
Diffstat (limited to 'compiler/sigmatch.nim')
-rwxr-xr-x | compiler/sigmatch.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index ecf6a32c4..9acf83a46 100755 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -499,13 +499,13 @@ proc ParamTypesMatchAux(c: PContext, m: var TCandidate, f, a: PType, result = copyTree(arg) result.typ = getInstantiatedType(c, arg, m, f) # BUG: f may not be the right key! - if (skipTypes(result.typ, abstractVar).kind in {tyTuple, tyOpenArray}): + if (skipTypes(result.typ, abstractVar).kind in {tyTuple}): result = implicitConv(nkHiddenStdConv, f, copyTree(arg), m, c) # BUGFIX: use ``result.typ`` and not `f` here of isEqual: inc(m.exactMatches) result = copyTree(arg) - if (skipTypes(f, abstractVar).kind in {tyTuple, tyOpenArray}): + if (skipTypes(f, abstractVar).kind in {tyTuple}): result = implicitConv(nkHiddenStdConv, f, copyTree(arg), m, c) of isNone: result = userConvMatch(c, m, f, a, arg) |