diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2024-01-11 14:47:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 07:47:33 +0100 |
commit | 62c5b8b2873caac3e56d15738f503e953840e6ca (patch) | |
tree | b2679261300a32661528e11e9c267c1156122aac /tests/effects | |
parent | e8092a54704be254cd7ccb4f5ecfca7cb059fe5c (diff) | |
download | Nim-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.nim | 16 |
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 |