cuelang.org/go@v0.13.0/tools/trim/testdata/46.txtar (about)

     1  Related to 43. The changes from 43 are the switch from an embedded
     2  disjunction, and the fact that the disjunction is open. This means
     3  that the disjunction is not simplified to a single branch, unlike 43.
     4  
     5  See also 52.
     6  
     7  -- a.cue --
     8  DefA: A: "a"
     9  DefB: B: "b"
    10  
    11  First: {
    12  	B: "b"
    13  	C: "c"
    14  }
    15  
    16  First: {
    17  	B: "b"
    18  }
    19  
    20  First: DefA | DefB
    21  -- out/trim --
    22  == a.cue
    23  DefA: A: "a"
    24  DefB: B: "b"
    25  
    26  First: {
    27  	B: "b"
    28  	C: "c"
    29  }
    30  
    31  First: {
    32  	B: "b"
    33  }
    34  
    35  First: DefA | DefB