summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authorTanguy <tanguy@status.im>2023-06-08 14:09:06 +0200
committerGitHub <noreply@github.com>2023-06-08 14:09:06 +0200
commita4f9413a65b7aa77717bdad12156f92abe9ac2ed (patch)
tree6f4f266f937f7d7b40f4c5c30579e24a93cdc572 /tests/effects
parenta8d0dda8333f78dfa427e0808ff84280363355d4 (diff)
downloadNim-a4f9413a65b7aa77717bdad12156f92abe9ac2ed.tar.gz
Fix: don't track Defect in proc effect compatibility (#22037)
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/teffects1.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/effects/teffects1.nim b/tests/effects/teffects1.nim
index caa8907c3..49c904029 100644
--- a/tests/effects/teffects1.nim
+++ b/tests/effects/teffects1.nim
@@ -22,6 +22,11 @@ proc lier(): int {.raises: [IO2Error].} = #[tt.Hint
 proc forw: int =
   raise newException(IOError, "arg")
 
+block:
+  proc someProc(t: string) {.raises: [Defect].} =
+    discard
+  let vh: proc(topic: string) {.raises: [].} = someProc
+
 {.push raises: [Defect].}
 
 type