blob: d69371de2eb3a775bf3ca53d63fd5656b67633f0 [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: cannot reference optional field a:
// ./in.cue:3:6
}
c: (_|_){
// [incomplete] r.c: cannot reference optional field a:
// ./in.cue:4:8
}
}
}