{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/17730","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/17730/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/17730/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/17730/events","html_url":"https://github.com/JuliaLang/julia/issues/17730","id":168534678,"number":17730,"title":"misleading error message for misplaced = sign","user":{"login":"StephenVavasis","id":7881863,"avatar_url":"https://avatars.githubusercontent.com/u/7881863?v=3","gravatar_id":"","url":"https://api.github.com/users/StephenVavasis","html_url":"https://github.com/StephenVavasis","followers_url":"https://api.github.com/users/StephenVavasis/followers","following_url":"https://api.github.com/users/StephenVavasis/following{/other_user}","gists_url":"https://api.github.com/users/StephenVavasis/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenVavasis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenVavasis/subscriptions","organizations_url":"https://api.github.com/users/StephenVavasis/orgs","repos_url":"https://api.github.com/users/StephenVavasis/repos","events_url":"https://api.github.com/users/StephenVavasis/events{/privacy}","received_events_url":"https://api.github.com/users/StephenVavasis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/error%20handling","name":"error handling","color":"02d7e1"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/lowering","name":"lowering","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-31T19:47:17Z","updated_at":"2016-08-01T19:11:28Z","closed_at":null,"body":"A more complicated case of the example below caused me to spend a long time debugging a small typo.  In the code below, there is a syntax error ('=' instead of ':')  in the third line of the function.  However, when this function is run in 0.4.6 (`StrangeError.fn(1,2,3,4,5)`), the following error message results.  Note that the error message refers to the second line in the function, that is, the first place in the code where a + operation is used, not the line with the syntax error.\r\n\r\n```julia\r\njulia> StrangeError.fn(1,2,3,4,5)\r\nERROR: UndefVarError: + not defined\r\n in fn at C:\\Users\\vavasis\\ownCloud\\Documents\\Katerina\\cohesive\\conic_jl\\test_misplaced_eq.jl:4\r\n```\r\n```julia\r\nmodule StrangeError\r\n\r\nfunction fn(a,b,c,d,e)\r\n    u = a + b\r\n    c[a + b = c + d : e] = 0\r\n    return u\r\nend\r\n\r\nend\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/236677349","html_url":"https://github.com/JuliaLang/julia/issues/17730#issuecomment-236677349","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/17730","id":236677349,"user":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T19:11:28Z","updated_at":"2016-08-01T19:11:28Z","body":"Your analysis is correct. If anything, I think we should further restrict where assignments are allowed to occur. In particular it would seem to be good to restrict function definitions to statement position."}}
{"actor":{"display_login":"JeffBezanson"}}