github.com/solo-io/cue@v0.4.7/cue/testdata/builtins/and.txtar (about) 1 -- in.cue -- 2 merge: and([1, 1]) 3 4 // ensure definitions along embedded scalars are preserved. 5 embed: and([{2, #x: 1}, {2, #x: 2}]) 6 -- out/eval -- 7 Errors: 8 embed.#x: conflicting values 2 and 1: 9 ./in.cue:4:21 10 ./in.cue:4:33 11 12 Result: 13 (_|_){ 14 // [eval] 15 merge: (int){ 1 } 16 embed: (_|_){ 17 // [eval] 18 #x: (_|_){ 19 // [eval] embed.#x: conflicting values 2 and 1: 20 // ./in.cue:4:21 21 // ./in.cue:4:33 22 } 23 } 24 } 25 -- out/compile -- 26 --- in.cue 27 { 28 merge: and([ 29 1, 30 1, 31 ]) 32 embed: and([ 33 { 34 2 35 #x: 1 36 }, 37 { 38 2 39 #x: 2 40 }, 41 ]) 42 }