{"action":"opened","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/26418","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/26418/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/26418/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/26418/events","html_url":"https://github.com/dart-lang/sdk/issues/26418","id":153469367,"number":26418,"title":"Static const object is not recognized as a compile-time const.","user":{"login":"renning22","id":4597657,"avatar_url":"https://avatars.githubusercontent.com/u/4597657?v=3","gravatar_id":"","url":"https://api.github.com/users/renning22","html_url":"https://github.com/renning22","followers_url":"https://api.github.com/users/renning22/followers","following_url":"https://api.github.com/users/renning22/following{/other_user}","gists_url":"https://api.github.com/users/renning22/gists{/gist_id}","starred_url":"https://api.github.com/users/renning22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renning22/subscriptions","organizations_url":"https://api.github.com/users/renning22/orgs","repos_url":"https://api.github.com/users/renning22/repos","events_url":"https://api.github.com/users/renning22/events{/privacy}","received_events_url":"https://api.github.com/users/renning22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T14:55:53Z","updated_at":"2016-05-06T14:55:53Z","closed_at":null,"body":"I.e. following code doesn't build with error: \"Case expressions must be constant\"\r\n\r\n```\r\nclass Foo {\r\n  static const foo = const Foo._(1);\r\n  \r\n  final int value;\r\n  const Foo._(this.value);\r\n}\r\n\r\nmain() {\r\n  switch (1) {\r\n    case Foo.foo.value:\r\n      print('1');\r\n  }\r\n}\r\n\r\n```"}}