This commit is contained in:
Araq 2014-04-06 17:26:20 +02:00
commit cf7e83ecc5
3 changed files with 21 additions and 0 deletions

View file

@ -668,6 +668,8 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
result = isNone
else: discard
of tyOpenArray, tyVarargs:
# varargs[expr] is special
if f.kind == tyVarargs and f.sons[0].kind == tyExpr: return
case a.kind
of tyOpenArray, tyVarargs:
result = typeRel(c, base(f), base(a))