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

     1  # DO NOT EDIT; generated by go run testdata/gen.go
     2  #
     3  #name: disjunctions of lists
     4  #evalFull
     5  -- in.cue --
     6  l: *[ int, int] | [ string, string]
     7  
     8  l1: [ "a", "b"]
     9  l2: l & [ "c", "d"]
    10  -- out/def --
    11  l: *[int, int] | [string, string]
    12  l1: ["a", "b"]
    13  l2: ["c", "d"]
    14  -- out/legacy-debug --
    15  <0>{l: [int,int], l1: ["a","b"], l2: ["c","d"]}
    16  -- out/compile --
    17  --- in.cue
    18  {
    19    l: (*[
    20      int,
    21      int,
    22    ]|[
    23      string,
    24      string,
    25    ])
    26    l1: [
    27      "a",
    28      "b",
    29    ]
    30    l2: (〈0;l〉 & [
    31      "c",
    32      "d",
    33    ])
    34  }
    35  -- out/eval --
    36  (struct){
    37    l: (list){ |(*(#list){
    38        0: (int){ int }
    39        1: (int){ int }
    40      }, (#list){
    41        0: (string){ string }
    42        1: (string){ string }
    43      }) }
    44    l1: (#list){
    45      0: (string){ "a" }
    46      1: (string){ "b" }
    47    }
    48    l2: (#list){
    49      0: (string){ "c" }
    50      1: (string){ "d" }
    51    }
    52  }