# TODO(evalv3): Foo.foo shows too much "unrolling" compared to evalv2.

exec 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?: Foo
            bar:  string
            baz:  bar + "2"
        }
        bar: "barNested"
        baz: "barNested2"
    }
    bar: "barParent"
    baz: "barParent2"
}
