github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/020_complex_interaction_of_groundness.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: complex interaction of groundness 4 #evalFull 5 -- in.cue -- 6 res: [ for x in a for y in x {y & {d: "b"}}] 7 res: [ a.b.c & {d: "b"}] 8 9 a: b: [C=string]: {d: string, s: "a" + d} 10 a: b: c: d: string 11 -- out/def -- 12 res: [{ 13 d: "b" 14 s: "ab" 15 } & (a.b.c & { 16 d: "b" 17 })] 18 a: { 19 b: { 20 {[C=string]: { 21 d: string, s: "a" + d 22 }} 23 c: { 24 d: string 25 s: "a" + d 26 } 27 } 28 } 29 -- out/legacy-debug -- 30 <0>{res: [<1>{d: "b", s: "ab"}], a: <2>{b: <3>{[]: <4>(C: string)-><5>{d: string, s: ("a" + <5>.d)}, c: <6>{d: string, s: ("a" + <7>.d)}}}} 31 -- out/compile -- 32 --- in.cue 33 { 34 res: [ 35 for _, x in 〈0;a〉 for _, y in 〈0;x〉 { 36 (〈1;y〉 & { 37 d: "b" 38 }) 39 }, 40 ] 41 res: [ 42 (〈0;a〉.b.c & { 43 d: "b" 44 }), 45 ] 46 a: { 47 b: { 48 [string]: { 49 d: string 50 s: ("a" + 〈0;d〉) 51 } 52 } 53 } 54 a: { 55 b: { 56 c: { 57 d: string 58 } 59 } 60 } 61 } 62 -- out/eval -- 63 (struct){ 64 res: (#list){ 65 0: (struct){ 66 d: (string){ "b" } 67 s: (string){ "ab" } 68 } 69 } 70 a: (struct){ 71 b: (struct){ 72 c: (struct){ 73 d: (string){ string } 74 s: (_|_){ 75 // [incomplete] a.b.c.s: non-concrete value string in operand to +: 76 // ./in.cue:4:34 77 // ./in.cue:4:20 78 // ./in.cue:5:10 79 } 80 } 81 } 82 } 83 }