cue: add a regression test for a disjunction bug fixed in evalv3
As can be seen in the diff, the old evaluator resulted in the fields:
h: a: v: *"a" | "b" | "c"
h: b: v: *"a" | "b" | "c"
h: c: v: *"a" | *"b" | *"c"
Which, when exporting, would understandably result in an error:
h.c.v: incomplete value "a" | "b" | "c"
The new evaluator correctly keeps "a" as the only default in all fields:
h: a: v: *"a" | "b" | "c"
h: b: v: *"a" | "b" | "c"
h: c: v: *"a" | "b" | "c"
Closes #770.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Id3e5e9c522307900331dc0fa29b936f773750497
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1195003
Reviewed-by: Paul Jolly <paul@myitcv.io>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>