diff --git a/tests/exception/t22008.nim b/tests/exception/t22008.nim new file mode 100644 index 0000000000..c0758e7b45 --- /dev/null +++ b/tests/exception/t22008.nim @@ -0,0 +1,8 @@ +template detect(v: untyped) = + doAssert typeof(v) is int + +detect: + try: + raise (ref ValueError)() + except ValueError: + 42 \ No newline at end of file