{"action":"closed","issue":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1705","repository_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1705/labels{/name}","comments_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1705/comments","events_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/issues/1705/events","html_url":"https://github.com/rubberduck-vba/Rubberduck/issues/1705","id":158549043,"number":1705,"title":"Parameter default value builds wrong parse tree","user":{"login":"autoboosh","id":11047288,"avatar_url":"https://avatars.githubusercontent.com/u/11047288?v=3","gravatar_id":"","url":"https://api.github.com/users/autoboosh","html_url":"https://github.com/autoboosh","followers_url":"https://api.github.com/users/autoboosh/followers","following_url":"https://api.github.com/users/autoboosh/following{/other_user}","gists_url":"https://api.github.com/users/autoboosh/gists{/gist_id}","starred_url":"https://api.github.com/users/autoboosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autoboosh/subscriptions","organizations_url":"https://api.github.com/users/autoboosh/orgs","repos_url":"https://api.github.com/users/autoboosh/repos","events_url":"https://api.github.com/users/autoboosh/events{/privacy}","received_events_url":"https://api.github.com/users/autoboosh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/labels/vba-grammar","name":"vba-grammar","color":"DDDDDd"}],"state":"closed","locked":false,"assignee":{"login":"Hosch250","id":6299719,"avatar_url":"https://avatars.githubusercontent.com/u/6299719?v=3","gravatar_id":"","url":"https://api.github.com/users/Hosch250","html_url":"https://github.com/Hosch250","followers_url":"https://api.github.com/users/Hosch250/followers","following_url":"https://api.github.com/users/Hosch250/following{/other_user}","gists_url":"https://api.github.com/users/Hosch250/gists{/gist_id}","starred_url":"https://api.github.com/users/Hosch250/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hosch250/subscriptions","organizations_url":"https://api.github.com/users/Hosch250/orgs","repos_url":"https://api.github.com/users/Hosch250/repos","events_url":"https://api.github.com/users/Hosch250/events{/privacy}","received_events_url":"https://api.github.com/users/Hosch250/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20","html_url":"https://github.com/rubberduck-vba/Rubberduck/milestones/Version%202.0","labels_url":"https://api.github.com/repos/rubberduck-vba/Rubberduck/milestones/20/labels","id":1063094,"number":20,"title":"Version 2.0","description":"This version will include source control (GitHub) integration, WPF controls in dockable hosts, many more refactorings and inspections, and lots of bug fixes.","creator":{"login":"retailcoder","id":5751684,"avatar_url":"https://avatars.githubusercontent.com/u/5751684?v=3","gravatar_id":"","url":"https://api.github.com/users/retailcoder","html_url":"https://github.com/retailcoder","followers_url":"https://api.github.com/users/retailcoder/followers","following_url":"https://api.github.com/users/retailcoder/following{/other_user}","gists_url":"https://api.github.com/users/retailcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/retailcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retailcoder/subscriptions","organizations_url":"https://api.github.com/users/retailcoder/orgs","repos_url":"https://api.github.com/users/retailcoder/repos","events_url":"https://api.github.com/users/retailcoder/events{/privacy}","received_events_url":"https://api.github.com/users/retailcoder/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":393,"state":"open","created_at":"2015-04-11T13:20:05Z","updated_at":"2016-06-21T15:40:33Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-06-05T10:58:02Z","updated_at":"2016-06-21T15:40:33Z","closed_at":"2016-06-21T15:40:33Z","body":"The default value in this example is treated as part of the \"as type clause\", which is wrong and probably because of the expression rule in complexType. One way to solve this could be to introduce a new typeExpression and copy over only the expression parts (e.g. without EQ) that are allowed in type expressions. That could also simplify the new / typeofis expression rules. We would have to deal with duplicate expression context classes though.\r\n\r\n```\r\nPublic Sub Test(ByVal a As Integer, Optional foo As Object = Nothing)\r\nEnd Sub\r\n```\r\n\r\nEdit: The create-declaration method in the declarationssymbollistener + the type annotation pass would have to be changed at least."}}
{"actor":{"display_login":"Hosch250"}}