typst/tests/lang/typ/let-invalid.typ
2021-01-31 22:43:11 +01:00

21 lines
351 B
Typst

// Test invalid let binding syntax.
---
// Error: 5-5 expected identifier
#let
// Error: 6-9 expected identifier, found string
#let "v"
// Should output `1`.
// Error: 7-7 expected semicolon or line break
#let v 1
// Error: 9-9 expected expression
#let v =
---
// Should output `= 1`.
// Error: 6-9 expected identifier, found string
#let "v" = 1