Skip to content

Commit c2f42a6

Browse files
authored
Names docstring: compat & implicit using (JuliaLang#59937)
Followup of JuliaLang#54609
1 parent 0601916 commit c2f42a6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

base/runtime_internals.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If `all` is true, then the list also includes non-public names defined in the mo
9595
deprecated names, and compiler-generated names.
9696
If `imported` is true, then names explicitly imported from other modules
9797
are also included.
98-
If `usings` is true, then names explicitly imported via `using` are also included.
98+
If `usings` is true, then names explicitly or implicitly imported via `using` are also included.
9999
Names are returned in sorted order.
100100
101101
As a special case, all names defined in `Main` are considered \"public\",
@@ -110,6 +110,9 @@ since it is not idiomatic to explicitly mark names from `Main` as public.
110110
`names` may return duplicate names. The duplication happens, e.g. if an `import`ed name
111111
conflicts with an already existing identifier.
112112
113+
!!! compat "Julia 1.12"
114+
The `usings` argument requires Julia 1.12 or later.
115+
113116
See also: [`Base.isexported`](@ref), [`Base.ispublic`](@ref), [`Base.@locals`](@ref), [`@__MODULE__`](@ref).
114117
"""
115118
names(m::Module; kwargs...) = sort!(unsorted_names(m; kwargs...))

0 commit comments

Comments
 (0)