diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-01-07 23:09:26 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-07 23:09:26 +0100 |
commit | e4081a720190dfdeb347442cdc2c01745476ff9c (patch) | |
tree | 2387777859fc0f44c4321f04831d2b322c9ce9ce /compiler/semcall.nim | |
parent | 3af73682e5382d89055f25ac567337e6958d7c70 (diff) | |
download | Nim-e4081a720190dfdeb347442cdc2c01745476ff9c.tar.gz |
preparations for language extensions: 'sink' and 'lent' types
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r-- | compiler/semcall.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index a51b9afe3..c580f8fd5 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -377,7 +377,7 @@ proc semResolvedCall(c: PContext, n: PNode, x: TCandidate): PNode = proc canDeref(n: PNode): bool {.inline.} = result = n.len >= 2 and (let t = n[1].typ; - t != nil and t.skipTypes({tyGenericInst, tyAlias}).kind in {tyPtr, tyRef}) + t != nil and t.skipTypes({tyGenericInst, tyAlias, tySink}).kind in {tyPtr, tyRef}) proc tryDeref(n: PNode): PNode = result = newNodeI(nkHiddenDeref, n.info) |