Skip to content

checker: fix private symbol visibility checking#23543

Merged
spytheman merged 15 commits into
vlang:masterfrom
felipensp:fix_alias_private_symbol
Jan 27, 2025
Merged

checker: fix private symbol visibility checking#23543
spytheman merged 15 commits into
vlang:masterfrom
felipensp:fix_alias_private_symbol

Conversation

@felipensp

@felipensp felipensp commented Jan 21, 2025

Copy link
Copy Markdown
Member

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-21971

@felipensp

Copy link
Copy Markdown
Member Author

V UI CI failures are fixed by vlang/ui#593

Need check `sum_type` and `function` also.
And `function` type try to get the correct mod name.
@kbkpbot

kbkpbot commented Jan 21, 2025

Copy link
Copy Markdown
Contributor

Sorry for directly commit....

kbkpbot and others added 4 commits January 22, 2025 07:36
fix error "vlib/x/json2/decoder2/decode_sumtype.v:50:11: error: sum_type `Sum` was declared as private to module `main`, so it can not be used inside module `x.json2.decoder2`"

Assume type define in `main` can be used as generic type in other module.
@felipensp felipensp changed the title checker: fix alias symbol visibility checking checker: fix private symbol visibility checking Jan 22, 2025
@felipensp felipensp marked this pull request as ready for review January 22, 2025 11:22
@felipensp

Copy link
Copy Markdown
Member Author

Already submitted a fix for Shy - larpon/shy#20

Comment thread vlib/v/checker/checker.v
Comment thread vlib/v/checker/tests/modules/private_symbol/priv_sym.v
Comment thread vlib/v/checker/checker.v Outdated
@felipensp

Copy link
Copy Markdown
Member Author

Submitted PR to herolib to fix visibility issue incubaid/herolib#30

@spytheman

Copy link
Copy Markdown
Contributor

If it can not be merged soon, we can just make .github/workflows/compile_herolib.sh do exit 0 for now.

@spytheman

Copy link
Copy Markdown
Contributor

The PR in herolib is now merged. I will merge this PR here as well.
Excellent work @felipensp .

@spytheman spytheman merged commit c2e4365 into vlang:master Jan 27, 2025
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.

Private type should not be public

3 participants