Skip to content

Unable to document Base methods from another module? #9001

Closed

Description

I've found that attempts to document methods from Base while in another module fail:

julia> @doc """
       Foo
       """ ->
       function Base.sum(a::Vector{Int})
           return NaN
       end
ERROR: `doc` has no method matching doc(::Module, ::Void, ::MD, ::Expr)
 in anonymous at docs.jl:40

Is this a bug? Or am I using @doc improperly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

docsThis change adds or pertains to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions