diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-29 22:32:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-29 22:32:57 +0100 |
| commit | aeb036f4dc2ede271d6c0710e91fae605ecdac84 (patch) | |
| tree | 1941fc92ba7240c1026a5f52e3a49496350f0255 /tests/typ/code | |
| parent | 44ebefbec23114d6ed7a96e7e3cb9078441aff31 (diff) | |
Fix that templates don't create a scope
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/block.typ | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -103,6 +103,13 @@ } --- +// Template also creates a scope. +[#let x = 1] + +// Error: 2-3 unknown variable +{x} + +--- // Multiple unseparated expressions in one line. // Error: 2-4 expected expression, found invalid token |
