...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: different labels for templates
4#evalFull
5-- in.cue --
6a: [X=string]: {name: X}
7a: [Name=string]: {name: Name}
8a: foo: {}
9-- out/def --
10a: {
11 {[X=string]: {
12 name: X & X
13 }}
14 foo: {
15 name: "foo"
16 }
17}
18-- out/export --
19a: {
20 foo: {
21 name: "foo"
22 }
23}
24-- out/yaml --
25a:
26 foo:
27 name: foo
28-- out/json --
29{"a":{"foo":{"name":"foo"}}}
30-- out/legacy-debug --
31<0>{a: <1>{[]: <2>(X: string)->(<3>{name: <2>.X} & <4>{name: <2>.X}), foo: <5>{name: "foo"}}}
32-- out/compile --
33--- in.cue
34{
35 a: {
36 [string]: {
37 name: 〈1;-〉
38 }
39 }
40 a: {
41 [string]: {
42 name: 〈1;-〉
43 }
44 }
45 a: {
46 foo: {}
47 }
48}
49-- out/eval/stats --
50Leaks: 0
51Freed: 4
52Reused: 0
53Allocs: 4
54Retain: 0
55
56Unifications: 4
57Conjuncts: 9
58Disjuncts: 4
59-- out/eval --
60(struct){
61 a: (struct){
62 foo: (struct){
63 name: (string){ "foo" }
64 }
65 }
66}
View as plain text