-- in.cue --
a: {
	#A
}

a: c: 1 @test(err, code=eval, contains="field not allowed", pos=[0:4])

#A: b: 1

b: {
	#A
    leaf: "leaf value"
    interpolation: "more \(leaf_ref)"
    leaf_ref: leaf

    @test(eq, {
		b:             1
		leaf:          "leaf value"
		interpolation: "more leaf value"
		leaf_ref:      "leaf value"
	})
}
-- out/errors.txt --
[eval] a.c: field not allowed:
    ./in.cue:5:4
-- out/eval/stats --
Leaks:  0
Freed:  11
Reused: 3
Allocs: 8
Retain: 0

Unifications: 11
Conjuncts:    16
Disjuncts:    0

NumCloseIDs: 6
-- out/diff-v2-v3.txt --
Positions: v3 reports fewer positions than v2 for the "field not allowed" error.
Reordering.
