diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 71302e6bc4..7083b052f4 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -1584,7 +1584,7 @@ proc typeRelImpl(c: var TCandidate, f, aOrig: PType, considerPreviousT: let targetKind = f.sons[0].kind let effectiveArgType = a.skipTypes({tyRange, tyGenericInst, - tyBuiltInTypeClass, tyAlias, tySink}) + tyBuiltInTypeClass, tyAlias, tySink, tyOwned}) let typeClassMatches = targetKind == effectiveArgType.kind and not effectiveArgType.isEmptyContainer if typeClassMatches or