# 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 | |
} | |
} | |
} |