{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10711","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10711/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10711/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10711/events","html_url":"https://github.com/JuliaLang/julia/issues/10711","id":65672930,"number":10711,"title":"Constructor with type parameters behaves different from methods","user":{"login":"malbarbo","id":1678126,"avatar_url":"https://avatars.githubusercontent.com/u/1678126?v=3","gravatar_id":"","url":"https://api.github.com/users/malbarbo","html_url":"https://github.com/malbarbo","followers_url":"https://api.github.com/users/malbarbo/followers","following_url":"https://api.github.com/users/malbarbo/following{/other_user}","gists_url":"https://api.github.com/users/malbarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/malbarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malbarbo/subscriptions","organizations_url":"https://api.github.com/users/malbarbo/orgs","repos_url":"https://api.github.com/users/malbarbo/repos","events_url":"https://api.github.com/users/malbarbo/events{/privacy}","received_events_url":"https://api.github.com/users/malbarbo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T12:29:11Z","updated_at":"2015-04-01T14:17:22Z","closed_at":"2015-04-01T14:17:22Z","body":"```julia\r\njulia> type Example{T}\r\n           value::T\r\n           Example(v::T) = new(v)\r\n       end\r\n\r\njulia> Example(20)\r\nERROR: `Example{T}` has no method matching Example{T}(::Int64)\r\n\r\njulia> Example{T}(a::T) = Example{T}(a)\r\nExample{T} (constructor with 1 method)\r\n\r\njulia> Example(20)\r\nExample{Int64}(20)\r\n```\r\n\r\nMaybe I'm missing something, but a I think the type parameter T in the constructor should be inferred as in the method."}}