-
Notifications
You must be signed in to change notification settings - Fork 484
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
Printing two methods when only calling for one #1523
Comments
I would like to add that I have not called for using or importing |
I get this problem also on some places for methods only defined in my module. However, on other functions with multiple methods it seems to work as I think it should. |
What type exactly is |
Okay, so this problem seems to arise with types having input arguments, please see the picture below. See my repository for the MWE. |
julia> Base.Docs.signature(:(fun(::Testdocs.foo1{T}) where T))
:(Union{Tuple{Testdocs.foo1{T}}, Tuple{T}} where T <: Any) Where did For now, a workaround is to not use the @doc Markdown.doc"""
fun(a::foo1{T})
Documentation1
"""
fun(a::foo1)
fun(a::foo1{T}) where T = 1 |
xref: JuliaLang/julia#29437 |
I get two methods printed when I only want the last one printed. The document call gets made by
See picture below for the result.
This happens for other functions as well. What module they belong to does not seem to matter. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: