typst/tests/typ/control/let-invalid.typ
2021-02-20 23:34:33 +01:00

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