summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-11 11:42:59 +0200
committerAraq <rumpf_a@web.de>2019-04-11 12:35:49 +0200
commit8fb04b320adfe8f50ac2d7977d5dada5ca5fe30d (patch)
treeb16d4b81a32d890ba4ddb532c9030d0e3272761f
parent1da98b163687412ea318115a44114540b6071b06 (diff)
downloadNim-8fb04b320adfe8f50ac2d7977d5dada5ca5fe30d.tar.gz
sigmatch: ensure 'owned proc' works with system.isNil
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index 71302e6bc..7083b052f 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