blob: b30d72e086d97504bea29618a35200467a775392 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Test field access.
// Ref: false
---
#let dict = (nothing: "ness", hello: "world")
#test(dict.nothing, "ness")
{
let world = dict
.hello
test(world, "world")
}
---
// Error: 2-13 dictionary does not contain key: "invalid"
{(:).invalid}
---
// Error: 2-7 cannot access field on boolean
{false.ok}
---
// Error: 8-12 expected identifier, found boolean
{false.true}
|