From a628d358767fec5fa819e0d7ceb2962e582544b8 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sat, 16 Mar 2024 13:10:25 +0100 Subject: [PATCH] Expand test with saems suggestion --- .../lang_callable/macros/tmacros_various.nim | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/lang_callable/macros/tmacros_various.nim b/tests/lang_callable/macros/tmacros_various.nim index f75b1cbaa66e8..398028604531d 100644 --- a/tests/lang_callable/macros/tmacros_various.nim +++ b/tests/lang_callable/macros/tmacros_various.nim @@ -13,6 +13,7 @@ macrocache ok CommentStmt "comment 1" CommentStmt "comment 2" false +false ''' output: ''' @@ -366,3 +367,22 @@ block: except Exception2: discard ) + + macro checkEqOfTry(a, b: typed) = + echo a[0][1][1] == b[0][1][1] + + checkEqOfTry (; + block: + type E = object of Exception1 + try: + discard + except E: + discard + ), (; + block: + type E = object of Exception2 + try: + discard + except E: + discard + )