remove {.this.} pragma, deprecated since 0.19 (#20201)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
3dbf2ac946
commit
f6eb1d4d7d
13 changed files with 28 additions and 158 deletions
|
|
@ -374,22 +374,6 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
|
|||
|
||||
let overloadsState = result.state
|
||||
if overloadsState != csMatch:
|
||||
if c.p != nil and c.p.selfSym != nil:
|
||||
# we need to enforce semchecking of selfSym again because it
|
||||
# might need auto-deref:
|
||||
var hiddenArg = newSymNode(c.p.selfSym)
|
||||
hiddenArg.typ = nil
|
||||
n.sons.insert(hiddenArg, 1)
|
||||
orig.sons.insert(hiddenArg, 1)
|
||||
|
||||
pickBest(f)
|
||||
|
||||
if result.state != csMatch:
|
||||
n.sons.delete(1)
|
||||
orig.sons.delete(1)
|
||||
excl n.flags, nfExprCall
|
||||
else: return
|
||||
|
||||
if nfDotField in n.flags:
|
||||
internalAssert c.config, f.kind == nkIdent and n.len >= 2
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue