Skip to content

🐛 fix(mq-check): correct deferred overload replacement and add regression test#1391

Merged
harehare merged 6 commits intomainfrom
fix/mq-check-overload
Mar 5, 2026
Merged

🐛 fix(mq-check): correct deferred overload replacement and add regression test#1391
harehare merged 6 commits intomainfrom
fix/mq-check-overload

Conversation

@harehare
Copy link
Copy Markdown
Owner

@harehare harehare commented Mar 5, 2026

No description provided.

harehare added 2 commits March 5, 2026 21:51
…on test

- Fixes bug where stale deferred overloads could cause false type errors in Pass 4
- Adds regression test for gsub with default param in piped call
Copilot AI review requested due to automatic review settings March 5, 2026 12:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a mq-check type inference edge case where deferred overload entries could become stale when the same symbol is re-processed after piped-input handling, and adds a regression test to prevent recurrence.

Changes:

  • Replace existing deferred overload entries by symbol_id instead of always appending.
  • Add a regression test covering a piped gsub call using a defaulted function parameter.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
crates/mq-check/src/infer.rs Updates deferred overload collection to replace stale entries for the same symbol.
crates/mq-check/src/builtin.rs Adds a regression test for piped gsub with a default-parameter argument.

Copilot AI review requested due to automatic review settings March 5, 2026 13:05
Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 5, 2026

@harehare I've opened a new pull request, #1393, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI and others added 2 commits March 5, 2026 13:14
perf(mq-check): replace Vec with FxHashMap for deferred_overloads
@harehare harehare merged commit 7b5b752 into main Mar 5, 2026
4 checks passed
@harehare harehare deleted the fix/mq-check-overload branch March 5, 2026 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants