cuelang.org/go@v0.13.0/tools/trim/testdata/39.txtar (about) 1 issue 2333 2 -- a.cue -- 3 #D: inner: { 4 type: "A" | "B" 5 if type == "A" { 6 value: number | *0 7 } 8 } 9 10 a: {inner: {type: "A", value: 0}} & #D 11 -- out/trim-v3 -- 12 == a.cue 13 #D: inner: { 14 type: "A" | "B" 15 if type == "A" { 16 value: number | *0 17 } 18 } 19 20 a: {inner: {type: "A"}} & #D 21 -- diff/-out/trim-v3<==>+out/trim -- 22 diff old new 23 --- old 24 +++ new 25 @@ -6,4 +6,4 @@ 26 } 27 } 28 29 -a: {inner: {type: "A", value: 0}} & #D 30 +a: {inner: {type: "A"}} & #D 31 -- out/trim-v3-noshare -- 32 == a.cue 33 #D: inner: { 34 type: "A" | "B" 35 if type == "A" { 36 value: number | *0 37 } 38 } 39 40 a: {inner: {type: "A"}} & #D 41 -- diff/-out/trim-v3-noshare<==>+out/trim -- 42 diff old new 43 --- old 44 +++ new 45 @@ -6,4 +6,4 @@ 46 } 47 } 48 49 -a: {inner: {type: "A", value: 0}} & #D 50 +a: {inner: {type: "A"}} & #D 51 -- out/trim -- 52 == a.cue 53 #D: inner: { 54 type: "A" | "B" 55 if type == "A" { 56 value: number | *0 57 } 58 } 59 60 a: {inner: {type: "A", value: 0}} & #D