Mirror of https://github.com/cue-lang/cue cuelang.org
cue go

internal/core/adt: fix error type of MinFields for v3 master

In v3, information about what type of constraint fields exists is compeletely different. In MinFields and MaxFields, we did not account for the fact that optional fields could still become regular, changing the count. The old explanation of a change was incorrect and is removed. V2 and v3 are now equal for what used to be called failOptional1 Fixes #3450 Issue #3141 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: I2eed630a9f4f2240ed5ec7909bf49f85986d1f51 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202299 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Matthew Sackman <matthew@cue.works>


+128 -54
3 changed files