the is operator now uses exactly the same algorithm as proc signature matching

This commit is contained in:
Zahary Karadjov 2014-01-26 00:45:50 +02:00
commit 5a6030a16b
3 changed files with 11 additions and 22 deletions

View file

@ -820,7 +820,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
else:
return isNone
of tyUserTypeClassInst:
of tyUserTypeClass, tyUserTypeClassInst:
considerPreviousT:
result = matchUserTypeClass(c.c, c, f, a)
if result == isGeneric: