diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2023-04-19 07:26:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-19 13:26:55 +0200 |
| commit | dc3017955a67e5509f6bc33cb9b4833806da4c22 (patch) | |
| tree | 364304f23268107cb0443fc0037a86bd4136d9ef /tests/typ/compiler/block.typ | |
| parent | e4b09d417e9bfc2c0011299272f33c6861e96a6f (diff) | |
Give more specific error messages (#881)
Diffstat (limited to 'tests/typ/compiler/block.typ')
| -rw-r--r-- | tests/typ/compiler/block.typ | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/typ/compiler/block.typ b/tests/typ/compiler/block.typ index bb23c0fe..81c719da 100644 --- a/tests/typ/compiler/block.typ +++ b/tests/typ/compiler/block.typ @@ -61,7 +61,7 @@ // Block directly in markup also creates a scope. #{ let x = 1 } -// Error: 7-8 unknown variable +// Error: 7-8 unknown variable: x #test(x, 1) --- @@ -73,7 +73,7 @@ #test(a, 1) -// Error: 3-4 unknown variable +// Error: 3-4 unknown variable: b #{b} --- @@ -83,7 +83,7 @@ test(b, 1) }} -// Error: 2-3 unknown variable +// Error: 2-3 unknown variable: b #b --- @@ -106,13 +106,13 @@ // Content blocks also create a scope. #[#let x = 1] -// Error: 2-3 unknown variable +// Error: 2-3 unknown variable: x #x --- // Multiple unseparated expressions in one line. -// Error: 2-4 invalid number suffix +// Error: 2-4 invalid number suffix: u #1u // Should output `1`. |
