-- in.cue --
a: {foo: 1 @foo() @baz(1)} @test(eq, {foo: 1 @foo() @baz(1)})
b: {foo: 1 @bar() @foo()}  @test(eq, {foo: 1 @foo() @bar()})
c: a & b                   @test(eq, {foo: 1 @foo() @baz(1) @bar()})

e: a & {foo: 1 @foo(other)} @test(eq, {foo: 1 @foo(other) @foo() @baz(1)})
-- out/eval/stats --
Leaks:  0
Freed:  9
Reused: 6
Allocs: 3
Retain: 0

Unifications: 9
Conjuncts:    16
Disjuncts:    9
