{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/17007","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/17007/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/17007/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/17007/events","html_url":"https://github.com/JuliaLang/julia/issues/17007","id":161043670,"number":17007,"title":"Ugly method ambiguity errors","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":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/regression","name":"regression","color":"ff2510"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-18T21:13:03Z","updated_at":"2016-06-21T21:19:22Z","closed_at":"2016-06-21T21:19:22Z","body":"Ambiguity errors are really hard to read and leak `svec` in 0.5. I consider this as a regression since ambiguity warnings were much cleaner on 0.4.\r\n```julia\r\njulia> f(x::Integer, y::Integer) = true\r\nf (generic function with 1 method)\r\n\r\njulia> f(x::Int, y::Any) = false\r\nf (generic function with 2 methods)\r\n\r\njulia> f(1, 2)\r\nERROR: MethodError: f(::Int64, ::Int64) is ambiguous. Candidates:\r\n  svec(Tuple{#f,Int64,Int64},svec(),f(x::Int64, y) at REPL[2]:1)\r\n  svec(Tuple{#f,Int64,Int64},svec(),f(x::Integer, y::Integer) at REPL[1]:1)\r\n in eval(::Module, ::Any) at ./boot.jl:231\r\n in macro expansion at ./REPL.jl:92 [inlined]\r\n in (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:46\r\n```"}}
{"actor":{"display_login":"JeffBezanson"}}