cue: make Value.Default test for whether the vertex was default-able
Found whilst looking into issue 3722. Although this change does not fix
issue 3722, it nevertheless allows a couple more openapi tests to work
on evalv3.
It seems like the semantics of Value.Default have changed between evalv2
and evalv3, and so it's possible that this change is restoring behaviour
of Value.Default to something closer to evalv2.
Signed-off-by: Matthew Sackman <matthew@cue.works>
Change-Id: I4973d467a90a21a401d072955a1277421d71e1e5
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1209372
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>