diff options
author | Araq <rumpf_a@web.de> | 2019-04-11 11:42:59 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-04-11 12:35:49 +0200 |
commit | 8fb04b320adfe8f50ac2d7977d5dada5ca5fe30d (patch) | |
tree | b16d4b81a32d890ba4ddb532c9030d0e3272761f | |
parent | 1da98b163687412ea318115a44114540b6071b06 (diff) | |
download | Nim-8fb04b320adfe8f50ac2d7977d5dada5ca5fe30d.tar.gz |
sigmatch: ensure 'owned proc' works with system.isNil
-rw-r--r-- | compiler/sigmatch.nim | 2 |
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 |