implements https://github.com/nim-lang/RFCs/issues/257 (#15466)
This commit is contained in:
parent
e3eae3f7c7
commit
9828392df3
3 changed files with 9 additions and 7 deletions
|
|
@ -223,6 +223,8 @@ proc isAssignable*(owner: PSym, n: PNode; isUnsafeAddr=false): TAssignableResult
|
|||
result = arLValue
|
||||
elif isUnsafeAddr and n.sym.kind == skParam:
|
||||
result = arLValue
|
||||
elif isUnsafeAddr and n.sym.kind == skConst and dontInlineConstant(n, n.sym.ast):
|
||||
result = arLValue
|
||||
elif n.sym.kind in kinds:
|
||||
if owner != nil and owner == n.sym.owner and
|
||||
sfGlobal notin n.sym.flags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue