blob: 160b9ae7a963e756b3834c3b1a09e48efdeb7341 [file] [log] [blame]
// 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