Merge branch 'devel' into araq-misc

This commit is contained in:
Araq 2018-08-13 20:16:18 +02:00
commit a0cde8cee6
13 changed files with 90 additions and 20 deletions

View file

@ -1819,6 +1819,10 @@ proc userConvMatch(c: PContext, m: var TCandidate, f, a: PType,
# see tests/tgenericconverter:
let srca = typeRel(m, src, a)
if srca notin {isEqual, isGeneric, isSubtype}: continue
let constraint = c.converters[i].typ.n[1].sym.constraint
if not constraint.isNil and not matchNodeKinds(constraint, arg):
continue
let destIsGeneric = containsGenericType(dest)
if destIsGeneric: