-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
std_options validation does not check decl visibility #14525
Copy link
Copy link
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Zig Version
0.11.0-dev.1507+6f13a725a
Steps to Reproduce and Observed Behavior
In the root source file, declare a
std_optionsnamespace like so:Resulting error:
Expected Behavior
Non-
pubdeclarations instd_optionsshould be ignored and not cause compile errors.Usecase
Considerations