blob: 50df2cb2b032d704484e85226a1de32ca18a2333 [file] [log] [blame]
# DO NOT EDIT; generated by go run testdata/gen.go
#
#name: optional field resolves to incomplete
#evalPartial
-- in.cue --
r: {
a?: 3
b: a
c: r["a"]
}
-- out/def --
r: {
a?: 3
b: a
c: r["a"]
}
-- out/legacy-debug --
<0>{r: <1>{a?: 3, b: <2>.a, c: <3>.r["a"]}}
-- out/compile --
--- in.cue
{
r: {
a?: 3
b: 0;a
c: 1;r〉["a"]
}
}
-- out/eval --
(struct){
r: (struct){
b: (_|_){
// [incomplete] r.b: undefined field a:
// ./in.cue:3:6
}
c: (_|_){
// [incomplete] r.c: undefined field a:
// ./in.cue:4:8
}
}
}