| 1 |
Like 11, but using a let comprehension. For trim, the let |
| 2 |
comprehension is treated the same as a field. I.e. in this case, it's |
| 3 |
no different to s: {a: bool, b: "hi"}, and so no simplification can |
| 4 |
occur. |
| 5 |
|
| 6 |
-- a.cue -- |
| 7 |
let s = {a: bool, b: "hi"} |
| 8 |
x: s & {a: true, b: string} |
| 9 |
-- out/trim-v3 -- |
| 10 |
== a.cue |
| 11 |
let s = {a: bool, b: "hi"} |
| 12 |
x: s & {a: true} |
| 13 |
-- diff/-out/trim-v3<==>+out/trim -- |
| 14 |
diff old new |
| 15 |
--- old |
| 16 |
+++ new |
| 17 |
@@ -1,3 +1,3 @@ |
| 18 |
== a.cue |
| 19 |
let s = {a: bool, b: "hi"} |
| 20 |
-x: s & {a: true, b: string} |
| 21 |
+x: s & {a: true} |
| 22 |
-- out/trim-v3-noshare -- |
| 23 |
== a.cue |
| 24 |
let s = {a: bool, b: "hi"} |
| 25 |
x: s & {a: true} |
| 26 |
-- diff/-out/trim-v3-noshare<==>+out/trim -- |
| 27 |
diff old new |
| 28 |
--- old |
| 29 |
+++ new |
| 30 |
@@ -1,3 +1,3 @@ |
| 31 |
== a.cue |
| 32 |
let s = {a: bool, b: "hi"} |
| 33 |
-x: s & {a: true, b: string} |
| 34 |
+x: s & {a: true} |
| 35 |
-- out/trim -- |
| 36 |
== a.cue |
| 37 |
let s = {a: bool, b: "hi"} |
| 38 |
x: s & {a: true, b: string} |