summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2024-01-11 14:47:33 +0800
committerGitHub <noreply@github.com>2024-01-11 07:47:33 +0100
commit62c5b8b2873caac3e56d15738f503e953840e6ca (patch)
treeb2679261300a32661528e11e9c267c1156122aac /tests/effects
parente8092a54704be254cd7ccb4f5ecfca7cb059fe5c (diff)
downloadNim-62c5b8b2873caac3e56d15738f503e953840e6ca.tar.gz
fixes #23129; fixes generated hooks raise unlisted Exception, which never raise (#23195)
fixes #23129
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/thooks.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/effects/thooks.nim b/tests/effects/thooks.nim
new file mode 100644
index 000000000..23cc005cd
--- /dev/null
+++ b/tests/effects/thooks.nim
@@ -0,0 +1,16 @@
+discard """
+  matrix: "--warningAsError:Effect"
+"""
+
+import std/isolation
+
+# bug #23129
+type
+  Thing = object
+    x: string
+
+proc send(x: string) =
+  let wrapper = Thing(x: x)
+  discard isolate(wrapper)
+
+send("la")
\ No newline at end of file