cuelang.org/go@v0.10.1/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/stats --
    24  Leaks:  2
    25  Freed:  3
    26  Reused: 0
    27  Allocs: 5
    28  Retain: 2
    29  
    30  Unifications: 3
    31  Conjuncts:    8
    32  Disjuncts:    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  }