summaryrefslogtreecommitdiff
path: root/tests/typ/code/block-scoping.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code/block-scoping.typ')
-rw-r--r--tests/typ/code/block-scoping.typ10
1 files changed, 10 insertions, 0 deletions
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
@@ -19,6 +19,16 @@
{b}
---
+// Double block creates a scope.
+{{
+ import "target.typ" using b
+ test(b, 1)
+}}
+
+// Error: 2-3 unknown variable
+{b}
+
+---
// Multiple nested scopes.
{
let a = "a1"