cuelang.org/go@v0.10.1/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/stats -- 11 Leaks: 0 12 Freed: 5 13 Reused: 1 14 Allocs: 4 15 Retain: 2 16 17 Unifications: 5 18 Conjuncts: 7 19 Disjuncts: 5 20 -- out/eval -- 21 (struct){ 22 #E: (#struct){ 23 y: (bool){ true } 24 x: (bool){ true } 25 } 26 z: (bool){ true } 27 } 28 -- out/compile -- 29 --- in.cue 30 { 31 if (ć0;#Eć["x"] != _|_(explicit error (_|_ literal) in source)) { 32 #E: { 33 y: true 34 } 35 } 36 if (ć0;#Eć["y"] != _|_(explicit error (_|_ literal) in source)) { 37 z: true 38 } 39 #E: { 40 [_]: bool 41 } 42 #E: { 43 x: true 44 } 45 }