From 37e08460377498165f421a522cb4eb1bb4e246b7 Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Mon, 31 May 2021 17:19:46 +0200 Subject: Test cases for include and import --- tests/typ/code/block-scoping.typ | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/typ/code/block-scoping.typ') diff --git a/tests/typ/code/block-scoping.typ b/tests/typ/code/block-scoping.typ index 7bb98969..ed689f3d 100644 --- a/tests/typ/code/block-scoping.typ +++ b/tests/typ/code/block-scoping.typ @@ -18,6 +18,16 @@ // Error: 2-3 unknown variable {b} +--- +// Double block creates a scope. +{{ + import "target.typ" using b + test(b, 1) +}} + +// Error: 2-3 unknown variable +{b} + --- // Multiple nested scopes. { -- cgit v1.2.3