github.com/solo-io/cue@v0.4.7/cue/testdata/export/025.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  raw: true
     4  eval: true
     5  -- in.cue --
     6  {
     7  	b: [{
     8  		{[X=_]: int}
     9  		if a > 4 {
    10  			f: 4
    11  		}
    12  	}][a]
    13  	a: int
    14  	c: *1 | 2
    15  }
    16  -- out/def --
    17  b: [{
    18  	if a > 4 {
    19  		f: 4
    20  	}
    21  	{[X=string]: int}
    22  }][a]
    23  a: int
    24  c: *1 | 2
    25  -- out/compile --
    26  --- in.cue
    27  {
    28    {
    29      b: [
    30        {
    31          {
    32            [_]: int
    33          }
    34          if (怈1;a怉 > 4) {
    35            f: 4
    36          }
    37        },
    38      ][怈0;a怉]
    39      a: int
    40      c: (*1|2)
    41    }
    42  }
    43  -- out/eval --
    44  (struct){
    45    b: (_|_){
    46      // [incomplete] b: invalid non-ground value int (must be concrete int)
    47    }
    48    a: (int){ int }
    49    c: (int){ |(*(int){ 1 }, (int){ 2 }) }
    50  }