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, the second test method does not overwrite the previous one despite actually accepting exactly the same argument types. Even more annoyingly, no method consistently takes precedence on the other: the method which is called is the first one which was used in the session. So the code below returns 1 as-is, and 2 when removing test(0) and running it in a new session.
test(x) =1test(0)
test{T}(x::T) =2test(0)
(Sorry if it's been reported elsewhere, I know similar issues are around but I couldn't find them.)
The text was updated successfully, but these errors were encountered:
In the following, the second
test
method does not overwrite the previous one despite actually accepting exactly the same argument types. Even more annoyingly, no method consistently takes precedence on the other: the method which is called is the first one which was used in the session. So the code below returns1
as-is, and2
when removingtest(0)
and running it in a new session.(Sorry if it's been reported elsewhere, I know similar issues are around but I couldn't find them.)
The text was updated successfully, but these errors were encountered: