Skip to content

Unable to document Base methods from another module? #9001

Closed
@johnmyleswhite

Description

@johnmyleswhite

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?

Metadata

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