diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-07-25 19:36:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 19:36:53 +0200 |
commit | 2aca748ddd59a9fc428c717d5a6b86044613cdc6 (patch) | |
tree | 9b5f5bf40d0917fe943d00802c694cc8566b2e92 /tests | |
parent | 7ca32c86bbb84ac7bcadd0a2bc2cd5fc277f1bff (diff) | |
download | Nim-2aca748ddd59a9fc428c717d5a6b86044613cdc6.tar.gz |
strict func: much better error messages (#15068)
* strict func: much better error messages * documented the 'strict funcs' mode
Diffstat (limited to 'tests')
-rw-r--r-- | tests/effects/tfuncs_cannot_mutate.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/effects/tfuncs_cannot_mutate.nim b/tests/effects/tfuncs_cannot_mutate.nim index ec3ad43f7..2990894ed 100644 --- a/tests/effects/tfuncs_cannot_mutate.nim +++ b/tests/effects/tfuncs_cannot_mutate.nim @@ -1,6 +1,9 @@ discard """ errormsg: "'mutate' can have side effects" - line: 25 + nimout: '''an object reachable from 'n' is potentially mutated +tfuncs_cannot_mutate.nim(34, 15) the mutation is here +tfuncs_cannot_mutate.nim(32, 7) is the statement that connected the mutation to the parameter''' + line: 28 """ {.experimental: "strictFuncs".} |