cuelang.org/go@v0.10.1/cue/testdata/eval/resolve_env.txtar (about) 1 -- in.cue -- 2 a: { 3 d: int 4 b: { 5 c: d 6 } 7 } 8 x: { 9 d: 2 10 b: a.b.c // should be int, not 2 11 } 12 a1: y: 5 13 a1: a2: a3: a4: a5: a1.y 14 b: a1.a2.a3.a4.a5 15 -- out/eval/stats -- 16 Leaks: 0 17 Freed: 15 18 Reused: 9 19 Allocs: 6 20 Retain: 0 21 22 Unifications: 15 23 Conjuncts: 22 24 Disjuncts: 15 25 -- out/eval -- 26 (struct){ 27 a: (struct){ 28 d: (int){ int } 29 b: (struct){ 30 c: (int){ int } 31 } 32 } 33 x: (struct){ 34 d: (int){ 2 } 35 b: (int){ int } 36 } 37 a1: (struct){ 38 y: (int){ 5 } 39 a2: (struct){ 40 a3: (struct){ 41 a4: (struct){ 42 a5: (int){ 5 } 43 } 44 } 45 } 46 } 47 b: (int){ 5 } 48 } 49 -- out/compile -- 50 --- in.cue 51 { 52 a: { 53 d: int 54 b: { 55 c: 〈1;d〉 56 } 57 } 58 x: { 59 d: 2 60 b: 〈1;a〉.b.c 61 } 62 a1: { 63 y: 5 64 } 65 a1: { 66 a2: { 67 a3: { 68 a4: { 69 a5: 〈4;a1〉.y 70 } 71 } 72 } 73 } 74 b: 〈0;a1〉.a2.a3.a4.a5 75 }