You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following, it's weird that the custom constructors is called, but that @which is not able to find it. It looks like adding keyword arguments creates a confusion with the fallback constructor.
julia> type A
end
julia> (::Type{A})(x; y=1) =1
julia>A(1)
1
julia>A(1; y=2)
1
julia>@whichA(1; y=2)
ERROR: no unique matching method for the specified argument types
inwhich(::Any, ::Any) at ./reflection.jl:467
The text was updated successfully, but these errors were encountered:
In the following, it's weird that the custom constructors is called, but that
@which
is not able to find it. It looks like adding keyword arguments creates a confusion with the fallback constructor.The text was updated successfully, but these errors were encountered: