diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-06-23 14:22:26 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-06-24 15:02:59 +0000 |
| commit | 26d77996cd6057592f0d7212c9017e8b62be66e8 (patch) | |
| tree | b4e5079ba6490b60915ae357cc2e202afe5bc7ea /go.sum | |
| parent | 80dc82961e63dcbee9fc31bcce5b74ab8a9f0b2e (diff) | |
prog: use consistent default values for conditional unions
We used to assume that the default value was the last, yet when it was
not specified in the serialized program, the first union option whose
condition is satisfied was chosen. Let's be consistent and use the last
value in both cases.
Also, remember that there's a case when there's no valid default value -
this happens when pkg/compiler wraps a conditional field into a union
with two conditional fields. Explicitly check for this case and assume
that, whatever value is set, is the correct default because in this
particular case the conditions of the two union options must be
mutually exclusive.
Fixes #6105.
Diffstat (limited to 'go.sum')
0 files changed, 0 insertions, 0 deletions
