Private type should not be public #23518
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Describe the bug
Private type declare in other module, should not be public.
Reproduction Steps
append a line to
vlib/builtin/cfns_wrapper.c.v
then create a file , such as :
p.v
then compile it :
Expected Behavior
The compiler should issue a error message "error: type
MyPrivateType
is private"Current Behavior
compile pass
Possible Solution
No response
Additional Information/Context
Private const/function in builtin mod work OK, they are private to other modules.
V version
V 0.4.9 1b9f15d.5dd28cf
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: