From 8fb04b320adfe8f50ac2d7977d5dada5ca5fe30d Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 11 Apr 2019 11:42:59 +0200 Subject: [PATCH] sigmatch: ensure 'owned proc' works with system.isNil --- compiler/sigmatch.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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