Skip to content

hy-check(range_iter): isolate file-const bound chains, propagate typed const bounds, and reject shadowed set iterables (Fixes #3853) - #3854

Open
Burapa-J wants to merge 2 commits into
limitlessprojects:mainfrom
Burapa-J:fix/range-iter-const-chain-and-set-shadow
Open

Burapa-J wants to merge 2 commits into
limitlessprojects:mainfrom
Burapa-J:fix/range-iter-const-chain-and-set-shadow

Conversation

@Burapa-J

@Burapa-J Burapa-J commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3853

Summary

  • Evaluate file-level self.const_values initializers with FnState::default() in non_integer_bound_kind_at and typed_int_bound_at so caller locals and type parameters do not corrupt file-level constant chains.
  • Propagate fixed-width integer types through untyped file-level constant initializers and type-aliased conversions in typed_int_bound_at.
  • Guard set iterable classification against self.enums.contains_key("set") (HYB-E2009) and st.type_params.contains("set") (HYB-E3005).
  • Add regression tests in compiler/crates/hy-check/tests/range_bound_const_expr_1554.rs.

Payout & Settlement Coordinates

  • Contributor GitHub: @Burapa-J
  • Primary Settlement Rail: USDC on Base Mainnet (Chain ID 8453, ERC-20 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
  • Settlement Wallet Address (Base / Polygon / EVM USDC): 0x46489A4fe1D0B5568352010257fEC049093f527a

Maintainer / Shepherd Queue Note (Session 145)

  1. Pagination Alert (#3843..#3854 are still OPEN & ALL-GREEN):

@github-actions github-actions Bot added bot:land-candidate Shepherd: fresh, gate-clean, verifiable (set from classify()) bot:stale-base Shepherd: behind main beyond threshold labels Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment