mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 20:17:42 +00:00
extend the skipAddr for potential types for destructors (#22265)
extend the skipAddr for potential types
This commit is contained in:
@@ -610,8 +610,7 @@ proc magicsAfterOverloadResolution(c: PContext, n: PNode,
|
||||
if op != nil:
|
||||
result[0] = newSymNode(op)
|
||||
|
||||
if op.typ != nil and op.typ.len == 2 and op.typ[1].kind != tyVar and
|
||||
skipAddr(n[1]).typ.kind == tyDistinct:
|
||||
if op.typ != nil and op.typ.len == 2 and op.typ[1].kind != tyVar:
|
||||
if n[1].kind == nkSym and n[1].sym.kind == skParam and
|
||||
n[1].typ.kind == tyVar:
|
||||
result[1] = genDeref(n[1])
|
||||
|
||||
Reference in New Issue
Block a user