// Optional fields should retain status after removal of unified | |
// content. | |
// Issue #855 | |
-- cue.mod/module.cue -- | |
module: "mod.com" | |
-- a.cue -- | |
package pkg | |
a: [...#A] | |
a: [{ | |
annotations: {} | |
}] | |
#A: annotations?: [string]: string | |
b: #B | |
b: bb: c: 2 // c can be removed, bb not. | |
#B: bb?: c: 2 | |
-- out/trim -- | |
== a.cue | |
package pkg | |
a: [...#A] | |
a: [{ | |
annotations: {} | |
}] | |
#A: annotations?: [string]: string | |
b: #B | |
b: bb: {} // c can be removed, bb not. | |
#B: bb?: c: 2 |