github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/issue493.txtar (about) 1 -- in.cue -- 2 #Artifact: { 3 body: _ 4 other: [string]: int 5 } 6 7 #App: #Artifact 8 #Atom: #Artifact 9 10 #Both: #App | #Atom 11 12 t1: #Both & {body: 3} 13 -- out/eval -- 14 (struct){ 15 #Artifact: (#struct){ 16 body: (_){ _ } 17 other: (#struct){ 18 } 19 } 20 #App: (#struct){ 21 body: (_){ _ } 22 other: (#struct){ 23 } 24 } 25 #Atom: (#struct){ 26 body: (_){ _ } 27 other: (#struct){ 28 } 29 } 30 #Both: (#struct){ 31 body: (_){ _ } 32 other: (#struct){ 33 } 34 } 35 t1: (#struct){ 36 body: (int){ 3 } 37 other: (#struct){ 38 } 39 } 40 } 41 -- out/compile -- 42 --- in.cue 43 { 44 #Artifact: { 45 body: _ 46 other: { 47 [string]: int 48 } 49 } 50 #App: 〈0;#Artifact〉 51 #Atom: 〈0;#Artifact〉 52 #Both: (〈0;#App〉|〈0;#Atom〉) 53 t1: (〈0;#Both〉 & { 54 body: 3 55 }) 56 }