Repository navigation
fix: verify scalar declarations without initializer expressions - #301
Merged
Merged
Conversation
shanejonas
enabled auto-merge (rebase)
October 29, 2026 02:18
auto-merge was automatically disabled
October 29, 2026 02:39
Rebase failed
shanejonas
force-pushed
the
fix/go-scalar-zero-declarations
branch
from
October 29, 2026 04:05
6cf6ebc to
c996760
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Valid Go such as
var a, b int32is rejected by scalar native matching and stays partial in routine export. The operand-order check rejects multiple names even though this declaration has no initializer expressions to order. Existing lowering and the independent source, binding, CFG and value verifiers already preserve both zero definitions correctly.Admit declarations without initializers through that check. Keep multiple initializer expressions, parallel assignments, independent arithmetic operands and multiple results excluded. This changes one production function; it adds no lowering representation or gate policy.
Validation:
make check,make quality-gate,make cognitive, repository guard and affected-packagego vetpass. Regenerate the required quality baseline; all counts and rates stay unchanged. The changed function has no quality diagnostics.Trusted-base preflight on base
5f59b694198ae50c941ec2a57a980736b3faabb0and head5f61d39357855a01a668745eabdaf22e7c1056f0reports LOW, with one affected function. Hosted checks and required reviews still control merge eligibility. No broader Go completeness claim.Merge risk: low ✅
Code impact: changed 👀
Affected functions: 1.
Dependencies: unchanged ✅
API diff: unchanged ✅
Compared base:
7f604ae835c5091c5fe52d680a428d2a1376e576· head:c9967601be10b6df367dc01d9a7d47f443de22fb