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 + )