{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/19413","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/19413/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/19413/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/19413/events","html_url":"https://github.com/JuliaLang/julia/issues/19413","id":191657173,"number":19413,"title":"Arbitrary call priority when two methods differ only by presence of type parameter","user":{"login":"nalimilan","id":1120448,"avatar_url":"https://avatars.githubusercontent.com/u/1120448?v=3","gravatar_id":"","url":"https://api.github.com/users/nalimilan","html_url":"https://github.com/nalimilan","followers_url":"https://api.github.com/users/nalimilan/followers","following_url":"https://api.github.com/users/nalimilan/following{/other_user}","gists_url":"https://api.github.com/users/nalimilan/gists{/gist_id}","starred_url":"https://api.github.com/users/nalimilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nalimilan/subscriptions","organizations_url":"https://api.github.com/users/nalimilan/orgs","repos_url":"https://api.github.com/users/nalimilan/repos","events_url":"https://api.github.com/users/nalimilan/events{/privacy}","received_events_url":"https://api.github.com/users/nalimilan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-25T09:22:34Z","updated_at":"2016-11-25T09:22:34Z","closed_at":null,"body":"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.\r\n```julia\r\ntest(x) = 1\r\ntest(0)\r\ntest{T}(x::T) = 2\r\ntest(0)\r\n```\r\n\r\n(Sorry if it's been reported elsewhere, I know similar issues are around but I couldn't find them.)"}}
{"actor":{"display_login":"nalimilan"}}