typst/tests/typ/compiler/embedded-expr.typ
2024-02-21 08:38:47 +00:00

23 lines
438 B
Typst

// Test embedded expressions.
// Ref: false
---
// Error: 6-8 expected pattern, found keyword `as`
// Hint: 6-8 keyword `as` is not allowed as an identifier; try `as_` instead
#let as = 1 + 2
---
#{
// Error: 7-9 expected pattern, found keyword `as`
// Hint: 7-9 keyword `as` is not allowed as an identifier; try `as_` instead
let as = 10
}
---
// Error: 2-2 expected expression
#
---
// Error: 2-2 expected expression
# hello