fixes #4491
This commit is contained in:
parent
1690b912ca
commit
da8f6e16cc
1 changed files with 3 additions and 0 deletions
|
|
@ -446,4 +446,7 @@ proc searchForBorrowProc(c: PContext, startScope: PScope, fn: PSym): PSym =
|
||||||
result = resolved.sons[0].sym
|
result = resolved.sons[0].sym
|
||||||
if not compareTypes(result.typ.sons[0], fn.typ.sons[0], dcEqIgnoreDistinct):
|
if not compareTypes(result.typ.sons[0], fn.typ.sons[0], dcEqIgnoreDistinct):
|
||||||
result = nil
|
result = nil
|
||||||
|
elif result.magic in {mArrPut, mArrGet}:
|
||||||
|
# cannot borrow these magics for now
|
||||||
|
result = nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue