{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/code_builder/issues/213","repository_url":"https://api.github.com/repos/dart-lang/code_builder","labels_url":"https://api.github.com/repos/dart-lang/code_builder/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/code_builder/issues/213/comments","events_url":"https://api.github.com/repos/dart-lang/code_builder/issues/213/events","html_url":"https://github.com/dart-lang/code_builder/issues/213","id":335975546,"node_id":"MDU6SXNzdWUzMzU5NzU1NDY=","number":213,"title":"Should `.asA` automatically wrap the expression in parens?","user":{"login":"natebosch","id":7528195,"node_id":"MDQ6VXNlcjc1MjgxOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7528195?v=4","gravatar_id":"","url":"https://api.github.com/users/natebosch","html_url":"https://github.com/natebosch","followers_url":"https://api.github.com/users/natebosch/followers","following_url":"https://api.github.com/users/natebosch/following{/other_user}","gists_url":"https://api.github.com/users/natebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/natebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebosch/subscriptions","organizations_url":"https://api.github.com/users/natebosch/orgs","repos_url":"https://api.github.com/users/natebosch/repos","events_url":"https://api.github.com/users/natebosch/events{/privacy}","received_events_url":"https://api.github.com/users/natebosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T20:19:46Z","updated_at":"2018-06-26T20:19:46Z","closed_at":null,"author_association":"MEMBER","body":"```dart\r\nsomeExpression.asAs(refer('Iterable')).property('toList').call([]);\r\n```\r\n\r\nThis code won't work because you end up with\r\n\r\n```dart\r\nsomeExpression as Iterable.toList()\r\n```\r\n\r\nIt should be safe to always wrap `(someExpression as Iterable)`. In some cases it may be unnecessary, but I don't think it will hurt anything."}}
{"actor":{"display_login":"natebosch"}}