1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
Issue #553
-- in.cue --
a: "foo"
b: "boo"
commands: {
#c: {
help: "help!"
}
}
out: """
a is \(a)
b is \(b)
c is \(commands.#c.help)
d is \(commands.#d.help)
"""
-- out/eval/stats --
Leaks: 0
Freed: 7
Reused: 3
Allocs: 4
Retain: 0
Unifications: 7
Conjuncts: 11
Disjuncts: 7
-- out/eval --
(struct){
a: (string){ "foo" }
b: (string){ "boo" }
commands: (struct){
#c: (#struct){
help: (string){ "help!" }
}
}
out: (_|_){
// [incomplete] out: invalid interpolation: undefined field: #d:
// ./in.cue:8:6
// ./in.cue:13:21
}
}
-- out/compile --
--- in.cue
{
a: "foo"
b: "boo"
commands: {
#c: {
help: "help!"
}
}
out: "a is \(〈0;a〉)
b is \(〈0;b〉)
c is \(〈0;commands〉.#c.help)
d is \(〈0;commands〉.#d.help)"
}
|