github.com/solo-io/cue@v0.4.7/cue/testdata/resolve/024_structs.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: structs 4 #evalPartial 5 -- in.cue -- 6 a: t & {c: 5} // {c:5,d:15} 7 b: ti & {c: 7} // {c:7,d:21} 8 t: {c: number, d: c * 3} // {c:number,d:number*3} 9 ti: t & {c: int} 10 -- out/def -- 11 a: t & { 12 c: 5 13 } 14 t: { 15 c: number 16 d: c * 3 17 } 18 b: ti & { 19 c: 7 20 } 21 ti: t & { 22 c: int 23 } 24 -- out/legacy-debug -- 25 <0>{a: <1>{c: 5, d: 15}, t: <2>{c: number, d: (<3>.c * 3)}, b: <4>{c: 7, d: 21}, ti: <5>{c: int, d: (<6>.c * 3)}} 26 -- out/compile -- 27 --- in.cue 28 { 29 a: (〈0;t〉 & { 30 c: 5 31 }) 32 b: (〈0;ti〉 & { 33 c: 7 34 }) 35 t: { 36 c: number 37 d: (〈0;c〉 * 3) 38 } 39 ti: (〈0;t〉 & { 40 c: int 41 }) 42 } 43 -- out/eval -- 44 (struct){ 45 a: (struct){ 46 c: (int){ 5 } 47 d: (int){ 15 } 48 } 49 b: (struct){ 50 c: (int){ 7 } 51 d: (int){ 21 } 52 } 53 t: (struct){ 54 c: (number){ number } 55 d: (_|_){ 56 // [incomplete] t.d: non-concrete value number in operand to *: 57 // ./in.cue:3:19 58 // ./in.cue:3:5 59 } 60 } 61 ti: (struct){ 62 c: (int){ int } 63 d: (_|_){ 64 // [incomplete] ti.d: non-concrete value int in operand to *: 65 // ./in.cue:3:19 66 // ./in.cue:3:5 67 // ./in.cue:4:10 68 } 69 } 70 }