{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/27490","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/27490/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/27490/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/27490/events","html_url":"https://github.com/dart-lang/sdk/issues/27490","id":181039295,"number":27490,"title":"StrongMode fails to report warning List.where() assignable to a list","user":{"login":"jtmcdole","id":1924313,"avatar_url":"https://avatars.githubusercontent.com/u/1924313?v=3","gravatar_id":"","url":"https://api.github.com/users/jtmcdole","html_url":"https://github.com/jtmcdole","followers_url":"https://api.github.com/users/jtmcdole/followers","following_url":"https://api.github.com/users/jtmcdole/following{/other_user}","gists_url":"https://api.github.com/users/jtmcdole/gists{/gist_id}","starred_url":"https://api.github.com/users/jtmcdole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtmcdole/subscriptions","organizations_url":"https://api.github.com/users/jtmcdole/orgs","repos_url":"https://api.github.com/users/jtmcdole/repos","events_url":"https://api.github.com/users/jtmcdole/events{/privacy}","received_events_url":"https://api.github.com/users/jtmcdole/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-strong-mode","name":"analyzer-strong-mode","color":"d4c5f9"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/P2%20medium","name":"P2 medium","color":"fbca04"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20bug","name":"Type: bug","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-05T00:35:54Z","updated_at":"2016-10-05T05:42:39Z","closed_at":"2016-10-05T03:59:59Z","body":"using List.where, I noticed StrongMode isn't warning me about assignments to Lists.\r\n\r\nRepro: Copy to dartpad and see:\r\n\r\n```dart\r\nmain() {\r\n  var items = stringItems([1234, \"hello\", {}]);\r\n  print(items);\r\n  items.clear();\r\n}\r\n\r\nList<String> stringItems(List list) =>\r\n  (list as List<String>).where((e) => e is String);\r\n```\r\n\r\n```console\r\n(hello)\r\nUncaught TypeError: items.clear$0 is not a function\r\n```"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/251586998","html_url":"https://github.com/dart-lang/sdk/issues/27490#issuecomment-251586998","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/27490","id":251586998,"user":{"login":"jtmcdole","id":1924313,"avatar_url":"https://avatars.githubusercontent.com/u/1924313?v=3","gravatar_id":"","url":"https://api.github.com/users/jtmcdole","html_url":"https://github.com/jtmcdole","followers_url":"https://api.github.com/users/jtmcdole/followers","following_url":"https://api.github.com/users/jtmcdole/following{/other_user}","gists_url":"https://api.github.com/users/jtmcdole/gists{/gist_id}","starred_url":"https://api.github.com/users/jtmcdole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtmcdole/subscriptions","organizations_url":"https://api.github.com/users/jtmcdole/orgs","repos_url":"https://api.github.com/users/jtmcdole/repos","events_url":"https://api.github.com/users/jtmcdole/events{/privacy}","received_events_url":"https://api.github.com/users/jtmcdole/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T05:42:39Z","updated_at":"2016-10-05T05:42:39Z","body":"Sorry, missed the last comment (was reading from email) - I'll give the `--no-implicit-cast` flag a try."}}
{"actor":{"display_login":"jtmcdole"}}