...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: references from template to concrete
4#evalFull
5-- in.cue --
6res: [t]
7t: [X=string]: {
8 a: c + b.str
9 b: str: string
10 c: "X"
11}
12t: x: {b: str: "DDDD"}
13-- out/def --
14res: [t]
15t: {
16 {[X=string]: {
17 a: c + b.str, c: "X", b: {
18 str: string
19 }
20 }}
21 x: {
22 a: "XDDDD"
23 c: "X"
24 b: {
25 str: "DDDD"
26 }
27 }
28}
29-- out/export --
30res: [{
31 x: {
32 a: "XDDDD"
33 c: "X"
34 b: {
35 str: "DDDD"
36 }
37 }
38}]
39t: {
40 x: {
41 a: "XDDDD"
42 c: "X"
43 b: {
44 str: "DDDD"
45 }
46 }
47}
48-- out/yaml --
49res:
50- x:
51 a: XDDDD
52 c: X
53 b:
54 str: DDDD
55t:
56 x:
57 a: XDDDD
58 c: X
59 b:
60 str: DDDD
61-- out/json --
62{"res":[{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}],"t":{"x":{"a":"XDDDD","c":"X","b":{"str":"DDDD"}}}}
63-- out/legacy-debug --
64<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"}}}}
65-- out/compile --
66--- in.cue
67{
68 res: [
69 〈1;t〉,
70 ]
71 t: {
72 [string]: {
73 a: (〈0;c〉 + 〈0;b〉.str)
74 b: {
75 str: string
76 }
77 c: "X"
78 }
79 }
80 t: {
81 x: {
82 b: {
83 str: "DDDD"
84 }
85 }
86 }
87}
88-- out/eval/stats --
89Leaks: 0
90Freed: 14
91Reused: 7
92Allocs: 7
93Retain: 3
94
95Unifications: 14
96Conjuncts: 21
97Disjuncts: 15
98-- out/eval --
99(struct){
100 res: (#list){
101 0: (struct){
102 x: (struct){
103 b: (struct){
104 str: (string){ "DDDD" }
105 }
106 a: (string){ "XDDDD" }
107 c: (string){ "X" }
108 }
109 }
110 }
111 t: (struct){
112 x: (struct){
113 b: (struct){
114 str: (string){ "DDDD" }
115 }
116 a: (string){ "XDDDD" }
117 c: (string){ "X" }
118 }
119 }
120}
View as plain text