-- in.cue --
a: {foo?: string}      @test(eq, {foo?: string})
b: {foo: "foo"}        @test(eq, {foo: "foo"})
c: a & b               @test(eq, {foo: "foo"})
d: a & {"foo"?: "bar"} @test(eq, {foo?: "bar"})

e: {
	g1: 1
	"g\(1)"?: 1
	"g\(2)"?: 2
	@test(eq, {g1: 1, g2?: 2})
}
-- out/eval/stats --
Leaks:  0
Freed:  11
Reused: 8
Allocs: 3
Retain: 0

Unifications: 11
Conjuncts:    19
Disjuncts:    11
