Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when documenting object overloading #20087

Closed
thofma opened this issue Jan 17, 2017 · 0 comments
Closed

Bug when documenting object overloading #20087

thofma opened this issue Jan 17, 2017 · 0 comments
Assignees
Labels
docsystem The documentation building system

Comments

@thofma
Copy link
Contributor

thofma commented Jan 17, 2017

I just noticed the following bug while replacing Base.call in our code. This happens on 0.5 and latest master:

julia> type A end

julia> type B end

julia> @doc """a""" (a::A)() = a 
a

julia> @doc """b""" (a::B)() = a
WARNING: replacing docs for 'a :: Tuple{}' in module 'Main'.
a

julia> a = A()
A()
help?> a
search: any all abs Any ANY atan asin asec any! all! airy acsc acot acos abs2 atanh atand atan2 asinh

  b

This does not happen with "normal" functions.

edit: Of course one can easily work around it by changing the variable names in the signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docsystem The documentation building system
Projects
None yet
Development

No branches or pull requests

3 participants