github.com/solo-io/cue@v0.4.7/cue/testdata/resolve/031_definitions_with_disjunctions_recurisive.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: definitions with disjunctions recurisive 4 #evalPartial 5 -- in.cue -- 6 #Foo: { 7 x: { 8 field: int 9 10 {a: 1} | 11 {b: 2} 12 } 13 x: c: 3 14 } 15 -- out/def -- 16 #Foo: { 17 x: { 18 field: int 19 a: 1 20 c: 3 21 } | { 22 field: int 23 b: 2 24 c: 3 25 } 26 } 27 -- out/export -- 28 29 -- out/yaml -- 30 {} 31 -- out/json -- 32 {} 33 -- out/legacy-debug -- 34 <0>{#Foo: <1>C{x: (<2>C{field: int, a: 1, c: 3} | <3>C{field: int, b: 2, c: 3})}} 35 -- out/compile -- 36 --- in.cue 37 { 38 #Foo: { 39 x: { 40 field: int 41 ({ 42 a: 1 43 }|{ 44 b: 2 45 }) 46 } 47 x: { 48 c: 3 49 } 50 } 51 } 52 -- out/eval -- 53 (struct){ 54 #Foo: (#struct){ 55 x: (#struct){ |((#struct){ 56 field: (int){ int } 57 c: (int){ 3 } 58 a: (int){ 1 } 59 }, (#struct){ 60 field: (int){ int } 61 c: (int){ 3 } 62 b: (int){ 2 } 63 }) } 64 } 65 }