github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/053_issue312.txtar (about) 1 # DO NOT EDIT; generated by go run testdata/gen.go 2 # 3 #name: issue312 4 #evalFull 5 -- in.cue -- 6 7 for x in [1] { 8 *close({}) | {[_]: null} 9 } 10 -- out/def -- 11 12 for 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 -- 24 (struct){ |(*(#struct){ 25 }, (struct){ 26 }) } 27 -- out/compile -- 28 --- in.cue 29 { 30 for _, x in [ 31 1, 32 ] { 33 (*close({})|{ 34 [_]: null 35 }) 36 } 37 }