{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/12805","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/12805/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12805/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/12805/events","html_url":"https://github.com/JuliaLang/julia/pull/12805","id":103129025,"number":12805,"title":"make apply_type error messages more understandable","user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","gravatar_id":"","url":"https://api.github.com/users/vtjnash","html_url":"https://github.com/vtjnash","followers_url":"https://api.github.com/users/vtjnash/followers","following_url":"https://api.github.com/users/vtjnash/following{/other_user}","gists_url":"https://api.github.com/users/vtjnash/gists{/gist_id}","starred_url":"https://api.github.com/users/vtjnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtjnash/subscriptions","organizations_url":"https://api.github.com/users/vtjnash/orgs","repos_url":"https://api.github.com/users/vtjnash/repos","events_url":"https://api.github.com/users/vtjnash/events{/privacy}","received_events_url":"https://api.github.com/users/vtjnash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/error%20handling","name":"error handling","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T22:15:41Z","updated_at":"2015-08-27T02:48:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/12805","html_url":"https://github.com/JuliaLang/julia/pull/12805","diff_url":"https://github.com/JuliaLang/julia/pull/12805.diff","patch_url":"https://github.com/JuliaLang/julia/pull/12805.patch"},"body":"the current `apply_type` error message assumes the user knows that `Type{...}` expressions translate into calls to apply_type. This change is intended to make the error messages both more informative (more specific to the error) and more easily comprehended to those uninitiated with the bowels of the julia src code."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/135263113","html_url":"https://github.com/JuliaLang/julia/pull/12805#issuecomment-135263113","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/12805","id":135263113,"user":{"login":"vtjnash","id":330950,"avatar_url":"https://avatars.githubusercontent.com/u/330950?v=3","gravatar_id":"","url":"https://api.github.com/users/vtjnash","html_url":"https://github.com/vtjnash","followers_url":"https://api.github.com/users/vtjnash/followers","following_url":"https://api.github.com/users/vtjnash/following{/other_user}","gists_url":"https://api.github.com/users/vtjnash/gists{/gist_id}","starred_url":"https://api.github.com/users/vtjnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtjnash/subscriptions","organizations_url":"https://api.github.com/users/vtjnash/orgs","repos_url":"https://api.github.com/users/vtjnash/repos","events_url":"https://api.github.com/users/vtjnash/events{/privacy}","received_events_url":"https://api.github.com/users/vtjnash/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T02:48:02Z","updated_at":"2015-08-27T02:48:02Z","body":"Old:\r\n```\r\njulia> Vector{\"\"}\r\nERROR: TypeError: apply_type: in alias, expected Type{T}, got ASCIIString\r\n\r\njulia> Union{\"\"}\r\nERROR: TypeError: apply_type: in parameter of Union, expected Type{T}, got ASCIIString\r\n\r\njulia> Array{\"\"}\r\nERROR: TypeError: apply_type: in Array, expected Type{T}, got ASCIIString\r\n\r\njulia> Tuple{Vararg{()}, 1}\r\nERROR: TypeError: apply_type: in parameter of Tuple, expected Type{T}, got Type{Vararg{()}}\r\n\r\njulia> \"\"{}\r\nERROR: TypeError: instantiate_type: expected TypeConstructor, got ASCIIString\r\n\r\njulia> NTuple{\"\"}\r\nERROR: TypeError: apply_type: in NTuple, expected Type{T}, got ASCIIString\r\n\r\njulia> NTuple{1.2}\r\nERROR: TypeError: apply_type: in first parameter of NTuple, expected Int64, got Float64\r\n```"}}