From aeb036f4dc2ede271d6c0710e91fae605ecdac84 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 29 Jan 2022 22:32:30 +0100 Subject: Fix that templates don't create a scope --- tests/typ/code/block.typ | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/typ/code') diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ index 5939ba9c..9122ea48 100644 --- a/tests/typ/code/block.typ +++ b/tests/typ/code/block.typ @@ -102,6 +102,13 @@ test(a, "a1") } +--- +// Template also creates a scope. +[#let x = 1] + +// Error: 2-3 unknown variable +{x} + --- // Multiple unseparated expressions in one line. -- cgit v1.2.3