File: do_not_remove_field.txtar

package info (click to toggle)
golang-github-cue-lang-cue 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,644 kB
  • sloc: makefile: 20; sh: 15
file content (37 lines) | stat: -rw-r--r-- 674 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Because of the embedding, trimV3 does not simplify this. If line 1 was
rewritten without the embedding, then the simplification can
occur. See do_not_remove_field_2 for that.

-- in.cue --
{[_]: x: "hello"}
a: x: "hello"
-- out/trim-v3 --
== in.cue
{[_]: x: "hello"}
a: x: "hello"
-- diff/-out/trim-v3<==>+out/trim --
diff old new
--- old
+++ new
@@ -1,3 +1,3 @@
 == in.cue
 {[_]: x: "hello"}
-a: {}
+a: x: "hello"
-- out/trim-v3-noshare --
== in.cue
{[_]: x: "hello"}
a: x: "hello"
-- diff/-out/trim-v3-noshare<==>+out/trim --
diff old new
--- old
+++ new
@@ -1,3 +1,3 @@
 == in.cue
 {[_]: x: "hello"}
-a: {}
+a: x: "hello"
-- out/trim --
== in.cue
{[_]: x: "hello"}
a: {}