diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-25 16:33:38 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-25 16:33:51 +0200 |
commit | f1e4d8ed74549a868be58c15fc8cfe04159c52fd (patch) | |
tree | bf54a328bc274581b51e83488118b4c8cd4e65e4 /tests/effects | |
parent | 82d4597e8897e1abd215f4e963feda08403c5ae9 (diff) | |
download | Nim-f1e4d8ed74549a868be58c15fc8cfe04159c52fd.tar.gz |
side-effect computation now done in the proper pass; fixes #4254
Diffstat (limited to 'tests/effects')
-rw-r--r-- | tests/effects/tsidee4.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/effects/tsidee4.nim b/tests/effects/tsidee4.nim index 2cb88a23e..ecc79580c 100644 --- a/tests/effects/tsidee4.nim +++ b/tests/effects/tsidee4.nim @@ -1,13 +1,13 @@ discard """ file: "tsidee4.nim" - line: 15 - errormsg: "type mismatch" + line: 12 + errormsg: "'noSideEffect' can have side effects" """ var global: int -proc dontcare(x: int): int = return x +proc dontcare(x: int): int = return global proc noSideEffect(x, y: int, p: proc (a: int): int {.noSideEffect.}): int {.noSideEffect.} = return x + y + dontcare(x) |