Skip to content

parser: fix duplicate mod imports#24559

Merged
spytheman merged 4 commits into
vlang:masterfrom
kbkpbot:fix-checker-auto-imports
May 24, 2025
Merged

parser: fix duplicate mod imports#24559
spytheman merged 4 commits into
vlang:masterfrom
kbkpbot:fix-checker-auto-imports

Conversation

@kbkpbot

@kbkpbot kbkpbot commented May 23, 2025

Copy link
Copy Markdown
Contributor

Fix issue #24552

This bug is because when code has chan in it, parser will register_auto_import('sync'), and then checker will fail with error.

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-22925

@kbkpbot kbkpbot changed the title cgen: allow auto_imports(sync) used in sync mod parser: fix duplicate mod imports May 23, 2025
@kbkpbot kbkpbot linked an issue May 23, 2025 that may be closed by this pull request

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Excellent work.

@spytheman spytheman merged commit a993fb0 into vlang:master May 24, 2025
74 checks passed
ctkjose pushed a commit to ctkjose/vlang that referenced this pull request May 27, 2025
@kbkpbot kbkpbot deleted the fix-checker-auto-imports branch May 31, 2025 09:09
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.

error: cannot import sync into a module with the same name

3 participants