| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| -- in.cue -- |
| {a: {b: 2.0, s: "abc"}, b: a.b, c: a.c, d: a["d"], e: a.t[2:3]} |
| -- out/def -- |
| a: { |
| b: 2.0 |
| s: "abc" |
| } |
| b: 2.0 |
| c: a.c |
| d: a["d"] |
| e: a.t[2:3] |
| -- out/compile -- |
| --- in.cue |
| { |
| { |
| a: { |
| b: 2.0 |
| s: "abc" |
| } |
| b: 〈0;a〉.b |
| c: 〈0;a〉.c |
| d: 〈0;a〉["d"] |
| e: 〈0;a〉.t[2:3] |
| } |
| } |
| -- out/eval -- |
| (struct){ |
| a: (struct){ |
| b: (float){ 2.0 } |
| s: (string){ "abc" } |
| } |
| b: (float){ 2.0 } |
| c: (_|_){ |
| // [incomplete] c: undefined field c: |
| // ./in.cue:1:38 |
| } |
| d: (_|_){ |
| // [incomplete] d: undefined field d: |
| // ./in.cue:1:46 |
| } |
| e: (_|_){ |
| // [incomplete] e: undefined field t: |
| // ./in.cue:1:57 |
| } |
| } |