summaryrefslogtreecommitdiff
path: root/tests/typ/code/block-scoping.typ
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2021-05-31 17:19:46 +0200
committerLaurenz <laurmaedje@gmail.com>2021-05-31 22:33:40 +0200
commit37e08460377498165f421a522cb4eb1bb4e246b7 (patch)
tree0480965d5497721db1f97d83057902fc2e2e719e /tests/typ/code/block-scoping.typ
parent00ac68b8451179468aa39cba0d7fbea1ee20e0a1 (diff)
Test cases for include and import
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"