github.com/solo-io/cue@v0.4.7/cue/testdata/comprehensions/issue287.txtar (about) 1 -- in.cue -- 2 if #E["x"] != _|_ { 3 #E: y: true 4 } 5 if #E["y"] != _|_ { 6 z: true 7 } 8 #E: [_]: bool 9 #E: x: true 10 -- out/eval -- 11 (struct){ 12 #E: (#struct){ 13 x: (bool){ true } 14 y: (bool){ true } 15 } 16 z: (bool){ true } 17 } 18 -- out/compile -- 19 --- in.cue 20 { 21 if (ć0;#Eć["x"] != _|_(explicit error (_|_ literal) in source)) { 22 #E: { 23 y: true 24 } 25 } 26 if (ć0;#Eć["y"] != _|_(explicit error (_|_ literal) in source)) { 27 z: true 28 } 29 #E: { 30 [_]: bool 31 } 32 #E: { 33 x: true 34 } 35 }