{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26100","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26100/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26100/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26100/events","html_url":"https://github.com/dart-lang/sdk/issues/26100","id":143858018,"number":26100,"title":"Analyzer strong mode inconsistent implicit cast warnings","user":{"login":"hermanbergwerf","id":4458965,"avatar_url":"https://avatars.githubusercontent.com/u/4458965?v=3","gravatar_id":"","url":"https://api.github.com/users/hermanbergwerf","html_url":"https://github.com/hermanbergwerf","followers_url":"https://api.github.com/users/hermanbergwerf/followers","following_url":"https://api.github.com/users/hermanbergwerf/following{/other_user}","gists_url":"https://api.github.com/users/hermanbergwerf/gists{/gist_id}","starred_url":"https://api.github.com/users/hermanbergwerf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermanbergwerf/subscriptions","organizations_url":"https://api.github.com/users/hermanbergwerf/orgs","repos_url":"https://api.github.com/users/hermanbergwerf/repos","events_url":"https://api.github.com/users/hermanbergwerf/events{/privacy}","received_events_url":"https://api.github.com/users/hermanbergwerf/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"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-27T22:49:35Z","updated_at":"2016-03-28T17:53:04Z","closed_at":null,"body":"The analyzer in strong mode gives me inconsistent implicit cast warnings.\r\nFor example, for this snippet I get a warning:\r\n```dart\r\nList<String> c;\r\nif (b is List<String>) {\r\n  c = b; // Unsound implicit cast from dynamic to List<String>\r\n}\r\n```\r\nWhile this does not give me a warning:\r\n```dart\r\nString c;\r\nif (b is String) {\r\n  c = b;\r\n}\r\n```\r\n\r\n(Dart 1.15.0)"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/202506314","html_url":"https://github.com/dart-lang/sdk/issues/26100#issuecomment-202506314","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26100","id":202506314,"user":{"login":"jmesserly","id":1081711,"avatar_url":"https://avatars.githubusercontent.com/u/1081711?v=3","gravatar_id":"","url":"https://api.github.com/users/jmesserly","html_url":"https://github.com/jmesserly","followers_url":"https://api.github.com/users/jmesserly/followers","following_url":"https://api.github.com/users/jmesserly/following{/other_user}","gists_url":"https://api.github.com/users/jmesserly/gists{/gist_id}","starred_url":"https://api.github.com/users/jmesserly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmesserly/subscriptions","organizations_url":"https://api.github.com/users/jmesserly/orgs","repos_url":"https://api.github.com/users/jmesserly/repos","events_url":"https://api.github.com/users/jmesserly/events{/privacy}","received_events_url":"https://api.github.com/users/jmesserly/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T17:53:04Z","updated_at":"2016-03-28T17:53:04Z","body":"See also https://github.com/dart-lang/sdk/issues/24565 for further discussion. We're open to changing this behavior in the long term, it was intended to make it easier to find potential runtime cast failures as we upgrade code to Strong Mode.\r\n\r\n(I think we can dupe it against that bug unless it turns out there's a type-promotion issue.)"}}