summary refs log tree commit diff stats
path: root/tests/effects/tnosideeffect.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/effects/tnosideeffect.nim')
-rw-r--r--tests/effects/tnosideeffect.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/effects/tnosideeffect.nim b/tests/effects/tnosideeffect.nim
index 9cabb35a2..9fc2f74d4 100644
--- a/tests/effects/tnosideeffect.nim
+++ b/tests/effects/tnosideeffect.nim
@@ -1,5 +1,5 @@
 block: # `.noSideEffect`
-  func foo(bar: proc(): int): int = bar()
+  func foo(bar: proc(): int): int {.effectsOf: bar.} = bar()
   var count = 0
   proc fn1(): int = 1
   proc fn2(): int = (count.inc; count)