...
1# DO NOT EDIT; generated by go run testdata/gen.go
2#
3#name: issue312
4#evalFull
5-- in.cue --
6
7for x in [1] {
8 *close({}) | {[_]: null}
9}
10-- out/def --
11
12for x in [1] *close({}) | {
13 [string]: null
14}
15-- out/export --
16
17-- out/yaml --
18{}
19-- out/json --
20{}
21-- out/legacy-debug --
22<0>{ <1>for _, x in [1] yield <2>{}, (*close (<3>{}) | <4>{[]: <5>(_: string)->null, })}
23-- out/eval/stats --
24Leaks: 2
25Freed: 3
26Reused: 0
27Allocs: 5
28Retain: 2
29
30Unifications: 3
31Conjuncts: 8
32Disjuncts: 5
33-- out/eval --
34(struct){ |(*(#struct){
35 }, (struct){
36 }) }
37-- out/compile --
38--- in.cue
39{
40 for _, x in [
41 1,
42 ] {
43 (*close({})|{
44 [_]: null
45 })
46 }
47}
View as plain text