cuelang.org/go@v0.13.0/tools/trim/testdata/8.txtar (about) 1 We simplify within a pattern - even for implicit unification of the 2 patterns, at least when CUE is able to spot they really are the same 3 thing. 4 5 In b, post evaluation, the vertex has two patterns, whereas in a, 6 there is only 1 pattern. 7 8 -- a.cue -- 9 a: [string]: x: string 10 a: [string]: x: "hi" 11 12 b: [string]: x: string 13 b: [=~ ".*"]: x: "hi" 14 -- out/trim-v3 -- 15 == a.cue 16 a: [string]: _ 17 a: [string]: x: "hi" 18 19 b: [string]: x: string 20 b: [=~".*"]: x: "hi" 21 -- diff/-out/trim-v3<==>+out/trim -- 22 diff old new 23 --- old 24 +++ new 25 @@ -1,5 +1,5 @@ 26 == a.cue 27 -a: [string]: x: string 28 +a: [string]: _ 29 a: [string]: x: "hi" 30 31 b: [string]: x: string 32 -- out/trim-v3-noshare -- 33 == a.cue 34 a: [string]: _ 35 a: [string]: x: "hi" 36 37 b: [string]: x: string 38 b: [=~".*"]: x: "hi" 39 -- diff/-out/trim-v3-noshare<==>+out/trim -- 40 diff old new 41 --- old 42 +++ new 43 @@ -1,5 +1,5 @@ 44 == a.cue 45 -a: [string]: x: string 46 +a: [string]: _ 47 a: [string]: x: "hi" 48 49 b: [string]: x: string 50 -- out/trim -- 51 == a.cue 52 a: [string]: x: string 53 a: [string]: x: "hi" 54 55 b: [string]: x: string 56 b: [=~".*"]: x: "hi"