github.com/solo-io/cue@v0.4.7/cue/testdata/definitions/issue483.txtar (about) 1 -- in.cue -- 2 out: { 3 instance 4 } 5 instance: #Type & { 6 alpha: bravo: charlie: true 7 } 8 #Type: #Root & { 9 alpha?: bravo?: charlie?: bool 10 } 11 #Root: { ... } 12 -- out/eval -- 13 (struct){ 14 out: (#struct){ 15 alpha: (#struct){ 16 bravo: (#struct){ 17 charlie: (bool){ true } 18 } 19 } 20 } 21 instance: (#struct){ 22 alpha: (#struct){ 23 bravo: (#struct){ 24 charlie: (bool){ true } 25 } 26 } 27 } 28 #Type: (#struct){ 29 } 30 #Root: (#struct){ 31 } 32 } 33 -- out/compile -- 34 --- in.cue 35 { 36 out: { 37 〈1;instance〉 38 } 39 instance: (〈0;#Type〉 & { 40 alpha: { 41 bravo: { 42 charlie: true 43 } 44 } 45 }) 46 #Type: (〈0;#Root〉 & { 47 alpha?: { 48 bravo?: { 49 charlie?: bool 50 } 51 } 52 }) 53 #Root: { 54 ... 55 } 56 }