{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26677","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26677/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26677/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26677/events","html_url":"https://github.com/dart-lang/sdk/issues/26677","id":159533365,"number":26677,"title":"Bogus dead code hints with labeled break","user":{"login":"nex3","id":188,"avatar_url":"https://avatars.githubusercontent.com/u/188?v=3","gravatar_id":"","url":"https://api.github.com/users/nex3","html_url":"https://github.com/nex3","followers_url":"https://api.github.com/users/nex3/followers","following_url":"https://api.github.com/users/nex3/following{/other_user}","gists_url":"https://api.github.com/users/nex3/gists{/gist_id}","starred_url":"https://api.github.com/users/nex3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nex3/subscriptions","organizations_url":"https://api.github.com/users/nex3/orgs","repos_url":"https://api.github.com/users/nex3/repos","events_url":"https://api.github.com/users/nex3/events{/privacy}","received_events_url":"https://api.github.com/users/nex3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-hint","name":"analyzer-hint","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/Type:%20bug","name":"Type: bug","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"srawlins","id":103167,"avatar_url":"https://avatars.githubusercontent.com/u/103167?v=3","gravatar_id":"","url":"https://api.github.com/users/srawlins","html_url":"https://github.com/srawlins","followers_url":"https://api.github.com/users/srawlins/followers","following_url":"https://api.github.com/users/srawlins/following{/other_user}","gists_url":"https://api.github.com/users/srawlins/gists{/gist_id}","starred_url":"https://api.github.com/users/srawlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srawlins/subscriptions","organizations_url":"https://api.github.com/users/srawlins/orgs","repos_url":"https://api.github.com/users/srawlins/repos","events_url":"https://api.github.com/users/srawlins/events{/privacy}","received_events_url":"https://api.github.com/users/srawlins/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-06-09T23:51:17Z","updated_at":"2016-06-14T15:51:51Z","closed_at":null,"body":"The following code:\r\n\r\n```dart\r\nvoid main() {\r\n  loop: while (true) {\r\n    switch (true) {\r\n      case false: break;\r\n      case true: break loop;\r\n    }\r\n  }\r\n\r\n  print(\"not dead!\");\r\n}\r\n```\r\n\r\nprints \"not dead!\", but the analyzer (tested against f5ef3232ea367ec890de27095f2ef749b0859c7c) emits a dead code hint for that line:\r\n\r\n```\r\n$ dartanalyzer test.dart \r\nAnalyzing [test.dart]...\r\n[hint] Dead code (test.dart, line 9, col 3)\r\n1 hint found.\r\n```\r\n\r\nNote that this also means that legitimate warnings like missing `return` statements aren't emitted in similar situations."},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/225926569","html_url":"https://github.com/dart-lang/sdk/issues/26677#issuecomment-225926569","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/26677","id":225926569,"user":{"login":"srawlins","id":103167,"avatar_url":"https://avatars.githubusercontent.com/u/103167?v=3","gravatar_id":"","url":"https://api.github.com/users/srawlins","html_url":"https://github.com/srawlins","followers_url":"https://api.github.com/users/srawlins/followers","following_url":"https://api.github.com/users/srawlins/following{/other_user}","gists_url":"https://api.github.com/users/srawlins/gists{/gist_id}","starred_url":"https://api.github.com/users/srawlins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srawlins/subscriptions","organizations_url":"https://api.github.com/users/srawlins/orgs","repos_url":"https://api.github.com/users/srawlins/repos","events_url":"https://api.github.com/users/srawlins/events{/privacy}","received_events_url":"https://api.github.com/users/srawlins/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T15:51:51Z","updated_at":"2016-06-14T15:51:51Z","body":"Sorry about this, @nex3. Working on a fix."}}
{"actor":{"display_login":"srawlins"}}