summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2021-04-06 22:20:01 +0800
committerGitHub <noreply@github.com>2021-04-06 16:20:01 +0200
commit7bfb9f00022513c2d0f4f93799c07be7e9ffa1e6 (patch)
treeb4bd4353829491d22b0cc6cde0b7d7c6efb7351e /tests/effects
parentaa4f18eff0344c4de828c1e22e440c0734113086 (diff)
downloadNim-7bfb9f00022513c2d0f4f93799c07be7e9ffa1e6.tar.gz
close #17636 (#17643)
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/tfuncs_cannot_mutate.nim4
-rw-r--r--tests/effects/tfuncs_cannot_mutate_simple.nim3
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/effects/tfuncs_cannot_mutate.nim b/tests/effects/tfuncs_cannot_mutate.nim
index 4768af2b3..8784cbbb1 100644
--- a/tests/effects/tfuncs_cannot_mutate.nim
+++ b/tests/effects/tfuncs_cannot_mutate.nim
@@ -2,8 +2,8 @@ discard """
   errormsg: "'mutate' can have side effects"
   nimout: '''an object reachable from 'n' is potentially mutated
 tfuncs_cannot_mutate.nim(39, 15) the mutation is here
-tfuncs_cannot_mutate.nim(37, 7) is the statement that connected the mutation to the parameter'''
-  line: 33
+tfuncs_cannot_mutate.nim(37, 7) is the statement that connected the mutation to the parameter
+'''
 """
 
 {.experimental: "strictFuncs".}
diff --git a/tests/effects/tfuncs_cannot_mutate_simple.nim b/tests/effects/tfuncs_cannot_mutate_simple.nim
index 9de20d1ec..a94a8d746 100644
--- a/tests/effects/tfuncs_cannot_mutate_simple.nim
+++ b/tests/effects/tfuncs_cannot_mutate_simple.nim
@@ -1,8 +1,7 @@
 discard """
   errormsg: "'edit' can have side effects"
   nimout: '''an object reachable from 'x' is potentially mutated
-tfuncs_cannot_mutate_simple.nim(17, 4) the mutation is here'''
-  line: 16
+tfuncs_cannot_mutate_simple.nim(16, 4) the mutation is here'''
 """
 
 {.experimental: "strictFuncs".}