github.com/solo-io/cue@v0.4.7/cue/testdata/fulleval/001_conflicts_in_optional_fields_are_okay_.txtar (about)

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: conflicts in optional fields are okay 
     4  #evalFull
     5  -- in.cue --
     6  d: {a: 1, b?: 3} | {a: 2}
     7  
     8  // the following conjunction should not eliminate any disjuncts
     9  c: d & {b?: 4}
    10  -- out/def --
    11  d: {
    12  	a:  1
    13  	b?: 3
    14  } | {
    15  	a: 2
    16  }
    17  
    18  // the following conjunction should not eliminate any disjuncts
    19  c: d & {
    20  	b?: 4
    21  }
    22  -- out/legacy-debug --
    23  <0>{d: (<1>{a: 1, b?: 3} | <2>{a: 2}), c: (<3>{a: 1, b?: (3 & 4)} | <4>{a: 2, b?: 4})}
    24  -- out/compile --
    25  --- in.cue
    26  {
    27    d: ({
    28      a: 1
    29      b?: 3
    30    }|{
    31      a: 2
    32    })
    33    c: (〈0;d〉 & {
    34      b?: 4
    35    })
    36  }
    37  -- out/eval --
    38  (struct){
    39    d: (struct){ |((struct){
    40        a: (int){ 1 }
    41      }, (struct){
    42        a: (int){ 2 }
    43      }) }
    44    c: (struct){ |((struct){
    45        a: (int){ 1 }
    46      }, (struct){
    47        a: (int){ 2 }
    48      }) }
    49  }