writing to a location counts as "side effect"; implements https://github.com/nim-lang/RFCs/issues/234 (#15030)
This commit is contained in:
parent
1330597f6d
commit
7ca32c86bb
5 changed files with 283 additions and 5 deletions
|
|
@ -64,7 +64,7 @@ proc canAlias(arg, ret: PType; marker: var IntSet): bool =
|
|||
else:
|
||||
result = false
|
||||
|
||||
proc canAlias(arg, ret: PType): bool =
|
||||
proc canAlias*(arg, ret: PType): bool =
|
||||
var marker = initIntSet()
|
||||
result = canAlias(arg, ret, marker)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue