internal/core/adt: fix disjunctions in data mode
The toDataAll path is currently not used, but will
be used in the upcoming matchN builtin.
In data mode, defaults of disjunctons should be taken
and a non-ambiguous default should consequently be
converted to data also.
This will be tested as part of the matchN builtin.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I40c1fed6c6c2284c750c3f9115a8ea6456bcc37a
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1199550
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>