Automatic dereferencing is removed (#20531)

This commit is contained in:
ringabout
2022-10-10 21:02:23 +08:00
committed by GitHub
parent b8def03575
commit d954e698b3
8 changed files with 18 additions and 104 deletions

View File

@@ -932,12 +932,6 @@ proc resolveIndirectCall(c: PContext; n, nOrig: PNode;
t: PType): TCandidate =
initCandidate(c, result, t)
matches(c, n, nOrig, result)
if result.state != csMatch:
# try to deref the first argument:
if implicitDeref in c.features and canDeref(n):
n[1] = n[1].tryDeref
initCandidate(c, result, t)
matches(c, n, nOrig, result)
proc bracketedMacro(n: PNode): PSym =
if n.len >= 1 and n[0].kind == nkSym: