diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-05-30 19:38:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 19:38:51 +0200 |
commit | 52c3633223005f70bb4ecffa9f86b2e4e845e4a3 (patch) | |
tree | 1249baa79935f0de1bb9b77c18f4b1f9aa46139a /tests/ccgbugs/tcodegenbug1.nim | |
parent | 7ccc7d7e93e0fdfcf72aed239cf8b5d4c04e7de5 (diff) | |
download | Nim-52c3633223005f70bb4ecffa9f86b2e4e845e4a3.tar.gz |
warn about observerable stores but don't prevent them for 1.2.2 [backport:1.2]; refs https://github.com/nim-lang/RFCs/issues/230 (#14510)
Diffstat (limited to 'tests/ccgbugs/tcodegenbug1.nim')
-rw-r--r-- | tests/ccgbugs/tcodegenbug1.nim | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ccgbugs/tcodegenbug1.nim b/tests/ccgbugs/tcodegenbug1.nim index 11846ff95..c62bae1ef 100644 --- a/tests/ccgbugs/tcodegenbug1.nim +++ b/tests/ccgbugs/tcodegenbug1.nim @@ -4,9 +4,9 @@ obj.inner.id = 7 id = 7 obj = (inner: (kind: Just, id: 7)) 2 -(a: "1", b: "2", c: "3") +(a: "a", b: "b", c: "") caught -(a: "1", b: "", c: "3")''' +(a: "a", b: "b", c: "")''' """ # bug #6960 @@ -164,7 +164,8 @@ proc ohmanNoNRVO = discard echo x - doAssert x.c == "3", "shouldn't modify x if f raises" + # once NVRO is sorted out, x.c == "3" + doAssert x.c == "", "shouldn't modify x if f raises" ohmanNoNRVO() @@ -179,4 +180,5 @@ try: except: echo "caught" echo xgg -doAssert xgg.c == "3", "this assert will fail" +# once NVRO is sorted out, xgg.c == "3" +doAssert xgg.c == "", "this assert will fail" |