cuelang.org/go@v0.13.0/tools/trim/testdata/25.txtar (about) 1 Make sure we do not remove the outer `x: 5` (line 6), even though it 2 is a tie with the inner `x: 5` (and the inner `x: 5` occurs earlier in 3 the file (line 2) so it would win in a tie-break). 4 5 What happens here is that we establish that line 1 requires (depends 6 on) line 6. Even though within x we have a tie between line 2 and line 7 6, we find that line 1 cannot be removed (because y only has 1 winner 8 in line 4, and line 4 requires line 1), and so therefore line 6 is 9 required, and so line 2 is redundant. 10 11 Contrast with 57. 12 13 #skip-v2 14 -- a.cue -- 15 if x == 5 { 16 x: 5 17 x: int 18 y: "hi" 19 } 20 x: 5 21 -- out/trim-v3 -- 22 == a.cue 23 if x == 5 { 24 y: "hi" 25 } 26 x: 5 27 -- out/trim-v3-noshare -- 28 == a.cue 29 if x == 5 { 30 y: "hi" 31 } 32 x: 5