#name: retain references with interleaved embedding
#evalFull
-- in.cue --
a: d: {
	#base
	#info: {...}
	Y: #info.X
} @test(eq, {
	#info: {X: "foo"}
	Y: "foo"
}) @test(closed)

#base: {
	#info: {...} @test(closed)
} @test(eq, { #info: {} })

a: [Name=string]: {#info: {
	X: "foo"
}}
-- out/eval/stats --
Leaks:  0
Freed:  8
Reused: 3
Allocs: 5
Retain: 1

Unifications: 8
Conjuncts:    19
Disjuncts:    9
