blob: 47b883fa5e497f298e3d1dbabe6d896a36054ee8 [file] [log] [blame]
-- in.cue --
if #E["x"] != _|_ {
#E: y: true
}
if #E["y"] != _|_ {
z: true
}
#E: [_]: bool
#E: x: true
-- out/eval --
(struct){
#E: (#struct){
x: (bool){ true }
y: (bool){ true }
}
z: (bool){ true }
}
-- out/compile --
--- in.cue
{
if (〈0;#E〉["x"] != _|_(explicit error (_|_ literal) in source)) {
#E: {
y: true
}
}
if (〈0;#E〉["y"] != _|_(explicit error (_|_ literal) in source)) {
z: true
}
#E: {
[_]: bool
}
#E: {
x: true
}
}