summaryrefslogtreecommitdiff
path: root/tests/typ/code/block.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code/block.typ')
-rw-r--r--tests/typ/code/block.typ4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ
index a54df461..45ee9204 100644
--- a/tests/typ/code/block.typ
+++ b/tests/typ/code/block.typ
@@ -58,8 +58,10 @@
}
---
-// Block in template does not create a scope.
+// Block directly in template also creates a scope.
{ let x = 1 }
+
+// Error: 7-8 unknown variable
#test(x, 1)
---