| # DO NOT EDIT; generated by go run testdata/gen.go |
| # |
| #name: references from template to concrete |
| #evalPartial |
| -- in.cue -- |
| res: [t] |
| t: [X=string]: { |
| a: c + b.str |
| b: str: string |
| c: "X" |
| } |
| t: x: {b: str: "DDDD"} |
| -- out/def -- |
| res: [t] |
| t: { |
| {[X=string]: { |
| a: c + b.str, c: "X", b: { |
| str: string |
| } |
| }} |
| x: { |
| a: "XDDDD" |
| c: "X" |
| b: { |
| str: "DDDD" |
| } |
| } |
| } |
| -- out/export -- |
| res: [{ |
| x: { |
| a: "XDDDD" |
| c: "X" |
| b: { |
| str: "DDDD" |
| } |
| } |
| }] |
| t: { |
| x: { |
| a: "XDDDD" |
| c: "X" |
| b: { |
| str: "DDDD" |
| } |
| } |
| } |
| -- out/yaml -- |
| res: |
| - x: |
| a: XDDDD |
| c: X |
| b: |
| str: DDDD |
| t: |
| x: |
| a: XDDDD |
| c: X |
| b: |
| str: DDDD |
| -- out/json -- |
| {"res":[{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}],"t":{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}} |
| -- out/legacy-debug -- |
| <0>{res: [<1>{[]: <2>(X: string)-><3>{a: (<3>.c + <3>.b.str), c: "X", b: <4>{str: string}}, x: <5>{a: "XDDDD", c: "X", b: <6>{str: "DDDD"}}}], t: <7>{[]: <2>(X: string)-><3>{a: (<3>.c + <3>.b.str), c: "X", b: <4>{str: string}}, x: <8>{a: "XDDDD", c: "X", b: <9>{str: "DDDD"}}}} |