blob: 5d3a94c9d7334ffa6406e499db72f9c1635ae660 [file] [log] [blame]
cue eval ./rec.cue -O
cmp stdout expect-stdout
-- rec.cue --
Foo: {
foo?: Foo
bar: string
baz: bar + "2"
}
foo: Foo & {
foo: {
bar: "barNested"
}
bar: "barParent"
}
-- expect-stdout --
Foo: {
foo?: Foo
bar: string
baz: bar + "2"
}
foo: {
foo: {
foo?: Foo
bar: "barNested"
baz: "barNested2"
}
bar: "barParent"
baz: "barParent2"
}