summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/embedded-expr.typ
blob: c95184e4f433a119fa837a31cb0367cd01dd1115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Test embedded expressions.
// Ref: false

---
// Error: 6-8 expected identifier, 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 identifier, 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