...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: optionals in open structs
4#evalFull
5-- in.cue --
6A: {
7 [=~"^[a-s]*$"]: int
8}
9B: {
10 [=~"^[m-z]*$"]: int
11}
12#C: {A & B}
13c: #C & {aaa: 3}
14-- out/def --
15A: {
16 [=~"^[a-s]*$"]: int
17}
18B: {
19 [=~"^[m-z]*$"]: int
20}
21#C: {
22 A & B
23}
24c: #C & {
25 aaa: 3
26}
27-- out/export --
28A: {}
29B: {}
30c: {
31 aaa: 3
32}
33-- out/yaml --
34A: {}
35B: {}
36c:
37 aaa: 3
38-- out/json --
39{"A":{},"B":{},"c":{"aaa":3}}
40-- out/legacy-debug --
41<0>{A: <1>{[=~"^[a-s]*$"]: <2>(_: string)->int, }, B: <3>{[=~"^[m-z]*$"]: <4>(_: string)->int, }, #C: <5>C{[=~"^[a-s]*$"]: <6>(_: string)->int, [=~"^[m-z]*$"]: <7>(_: string)->int, }, c: <8>C{[=~"^[a-s]*$"]: <9>(_: string)->int, [=~"^[m-z]*$"]: <10>(_: string)->int, aaa: 3}}
42-- out/compile --
43--- in.cue
44{
45 A: {
46 [=~"^[a-s]*$"]: int
47 }
48 B: {
49 [=~"^[m-z]*$"]: int
50 }
51 #C: {
52 (〈1;A〉 & 〈1;B〉)
53 }
54 c: (〈0;#C〉 & {
55 aaa: 3
56 })
57}
58-- out/eval/stats --
59Leaks: 0
60Freed: 6
61Reused: 3
62Allocs: 3
63Retain: 0
64
65Unifications: 6
66Conjuncts: 17
67Disjuncts: 6
68-- out/eval --
69(struct){
70 A: (struct){
71 }
72 B: (struct){
73 }
74 #C: (#struct){
75 }
76 c: (#struct){
77 aaa: (int){ 3 }
78 }
79}
View as plain text