mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
21 lines
345 B
Typst
21 lines
345 B
Typst
// Test invalid let binding syntax.
|
|
|
|
---
|
|
// Error: 5 expected identifier
|
|
#let
|
|
|
|
// Error: 6-9 expected identifier, found string
|
|
#let "v"
|
|
|
|
// Should output `1`.
|
|
// Error: 7 expected semicolon or line break
|
|
#let v 1
|
|
|
|
// Error: 9 expected expression
|
|
#let v =
|
|
|
|
---
|
|
// Should output `= 1`.
|
|
// Error: 6-9 expected identifier, found string
|
|
#let "v" = 1
|