blob: 69a60f41f595b29a96568d39f050ef7cae20bf3b [file] [log] [blame]
! cue eval -c -e b.a.b -e b.idx
cmp stderr expect-stderr
cmp stdout expect-stdout
-- expect-stdout --
// b.a.b
4
// b.idx
-- expect-stderr --
invalid non-ground value string (must be concrete int|string):
./partial.cue:7:9
./partial.cue:8:7
-- partial.cue --
package partial
def: *1 | int
sum: 1 | 2
b: {
idx: a[str] // should resolve to top-level `a`
str: string
}
b: a: b: 4
a: {
b: 3
c: 4
}
c: b & {str: "b"}