diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-09-15 13:12:07 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-09-15 13:12:07 +0200 |
| commit | ea921aca5d6268474383b6bac8fdd78de1f23c5a (patch) | |
| tree | 797aa10f026abab2c9bde6fef17026f83338dd11 /tests/typ/code | |
| parent | 5de791d9e6a1006dc6a017ec8e20a1c70a91a780 (diff) | |
Blocks directly in template also scope
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/block.typ | 4 | ||||
| -rw-r--r-- | tests/typ/code/import.typ | 2 |
2 files changed, 3 insertions, 3 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) --- diff --git a/tests/typ/code/import.typ b/tests/typ/code/import.typ index 953b522e..bc96e80c 100644 --- a/tests/typ/code/import.typ +++ b/tests/typ/code/import.typ @@ -21,8 +21,6 @@ test(b, 1) } -#test(b, 1) - // A wildcard import. #import * from "target.typ" |
