...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3raw: true
4eval: true
5-- in.cue --
6{
7 #Foo: {
8 sgl: #Bar
9 ref: null | #Foo
10 ext: #Bar | null
11 ref: null | #Foo
12 ref2: null | #Foo.sgl
13 ...
14 }
15 #Foo: {
16 "#Foo": 2
17 ...
18 }
19 #Bar: string
20}
21-- out/def --
22#Foo: {
23 "#Foo": 2
24 sgl: #Bar
25 ref: (null | #Foo) & (null | #Foo)
26 ext: #Bar | null
27 ref2: null | #Foo.sgl
28 ...
29}
30#Bar: string
31-- out/export --
32
33-- out/yaml --
34{}
35-- out/json --
36{}
37-- out/compile --
38--- in.cue
39{
40 {
41 #Foo: {
42 sgl: 〈1;#Bar〉
43 ref: (null|〈1;#Foo〉)
44 ext: (〈1;#Bar〉|null)
45 ref: (null|〈1;#Foo〉)
46 ref2: (null|〈1;#Foo〉.sgl)
47 ...
48 }
49 #Foo: {
50 "#Foo": 2
51 ...
52 }
53 #Bar: string
54 }
55}
56-- out/eval/stats --
57Leaks: 0
58Freed: 70
59Reused: 59
60Allocs: 11
61Retain: 1
62
63Unifications: 28
64Conjuncts: 131
65Disjuncts: 71
66-- out/eval --
67(struct){
68 #Foo: (#struct){
69 sgl: (string){ string }
70 ref: ((null|struct)){ |((null){ null }, (#struct){
71 sgl: (string){ string }
72 ref: (null){ null }
73 ext: ((null|string)){ |((string){ string }, (null){ null }) }
74 ref2: ((null|string)){ |((null){ null }, (string){ string }) }
75 "#Foo": (int){ 2 }
76 }) }
77 ext: ((null|string)){ |((string){ string }, (null){ null }) }
78 ref2: ((null|string)){ |((null){ null }, (string){ string }) }
79 "#Foo": (int){ 2 }
80 }
81 #Bar: (string){ string }
82}
View as plain text