writing to a location counts as "side effect"; implements https://github.com/nim-lang/RFCs/issues/234 (#15030)

This commit is contained in:
Andreas Rumpf 2020-07-25 15:14:28 +02:00 • committed by GitHub
commit 7ca32c86bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 283 additions and 5 deletions

View file

@ -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)