sigmatch: ensure 'owned proc' works with system.isNil

This commit is contained in:
Araq 2019-04-11 11:42:59 +02:00
commit 8fb04b320a

View file

@ -1584,7 +1584,7 @@ proc typeRelImpl(c: var TCandidate, f, aOrig: PType,
considerPreviousT: considerPreviousT:
let targetKind = f.sons[0].kind let targetKind = f.sons[0].kind
let effectiveArgType = a.skipTypes({tyRange, tyGenericInst, let effectiveArgType = a.skipTypes({tyRange, tyGenericInst,
tyBuiltInTypeClass, tyAlias, tySink}) tyBuiltInTypeClass, tyAlias, tySink, tyOwned})
let typeClassMatches = targetKind == effectiveArgType.kind and let typeClassMatches = targetKind == effectiveArgType.kind and
not effectiveArgType.isEmptyContainer not effectiveArgType.isEmptyContainer
if typeClassMatches or if typeClassMatches or