github.com/solo-io/cue@v0.4.7/cue/testdata/export/021.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 raw: true 4 eval: true 5 -- in.cue -- 6 { 7 b: { 8 idx: a[str] 9 str: string 10 } 11 b: a: b: 4 12 a: b: 3 13 } 14 -- out/def -- 15 16 A = a 17 b: { 18 idx: A[str] 19 a: { 20 b: 4 21 } 22 str: string 23 } 24 a: { 25 b: 3 26 } 27 -- out/compile -- 28 --- in.cue 29 { 30 { 31 b: { 32 idx: 〈1;a〉[〈0;str〉] 33 str: string 34 } 35 b: { 36 a: { 37 b: 4 38 } 39 } 40 a: { 41 b: 3 42 } 43 } 44 } 45 -- out/eval -- 46 (struct){ 47 b: (struct){ 48 idx: (_|_){ 49 // [incomplete] b.idx: invalid non-ground value string (must be concrete string) 50 } 51 str: (string){ string } 52 a: (struct){ 53 b: (int){ 4 } 54 } 55 } 56 a: (struct){ 57 b: (int){ 3 } 58 } 59 }