From 6832ca2a26df5a9407bd2b0266cc0bab328ebeba Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 14 Jun 2022 14:05:46 +0200 Subject: [PATCH] Ensure expressions can continue after a multiline block --- tests/typ/code/ops.typ | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ index 012b8c870..c382f34d9 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/code/ops.typ @@ -49,6 +49,11 @@ #test(3-4 * 5 < -10, true) #test({ let x; x = 1 + 4*5 >= 21 and { x = "a"; x + "b" == "ab" }; x }, true) +// With block. +#test(if true { + 1 +} + 2, 3) + // Mathematical identities. #let nums = ( 1, 3.14,