summary refs log tree commit diff stats
path: root/tests/assert
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2020-03-04 14:28:53 +0100
committerGitHub <noreply@github.com>2020-03-04 14:28:53 +0100
commita0eca7518223a18f3633150de2c8d3c1c9e71560 (patch)
tree3a3a7690c066e214e073e2a9c2fd33a9876dc7eb /tests/assert
parent614fb7567c80c3b071394714c3809c005aaad397 (diff)
downloadNim-a0eca7518223a18f3633150de2c8d3c1c9e71560.tar.gz
sink parameter inference for types that have destructors (#13544)
* ensure capitalize doesn't take an inferred sink parameter

* sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec.

* sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required

* fixes yet another critical DFA bug

* better implementation that also understands if expressions etc

* document sink parameter inference and allow for global disabling
Diffstat (limited to 'tests/assert')
-rw-r--r--tests/assert/tassert_c.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/assert/tassert_c.nim b/tests/assert/tassert_c.nim
index 84ccea823..98b859c1c 100644
--- a/tests/assert/tassert_c.nim
+++ b/tests/assert/tassert_c.nim
@@ -6,8 +6,8 @@ discard """
 const expected = """
 tassert_c.nim(35)        tassert_c
 tassert_c.nim(34)        foo
-assertions.nim(27)       failedAssertImpl
-assertions.nim(20)       raiseAssert
+assertions.nim(29)       failedAssertImpl
+assertions.nim(22)       raiseAssert
 fatal.nim(55)            sysFatal"""
 
 proc tmatch(x, p: string): bool =