{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2625","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2625/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2625/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2625/events","html_url":"https://github.com/scala-js/scala-js/issues/2625","id":182348586,"number":2625,"title":"Outer pointer checks fail in 2.12","user":{"login":"gzm0","id":1140323,"avatar_url":"https://avatars.githubusercontent.com/u/1140323?v=3","gravatar_id":"","url":"https://api.github.com/users/gzm0","html_url":"https://github.com/gzm0","followers_url":"https://api.github.com/users/gzm0/followers","following_url":"https://api.github.com/users/gzm0/following{/other_user}","gists_url":"https://api.github.com/users/gzm0/gists{/gist_id}","starred_url":"https://api.github.com/users/gzm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzm0/subscriptions","organizations_url":"https://api.github.com/users/gzm0/orgs","repos_url":"https://api.github.com/users/gzm0/repos","events_url":"https://api.github.com/users/gzm0/events{/privacy}","received_events_url":"https://api.github.com/users/gzm0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scala-js/scala-js/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-11T19:11:08Z","updated_at":"2016-10-12T08:51:12Z","closed_at":null,"body":"Take the following:\r\n\r\n```scala\r\nclass A {\r\n  def call() = f(Foo.B(1))\r\n\r\n  private def f(x: Foo) = x match {\r\n    case Foo.B(x) => println(x)\r\n  }\r\n\r\n  sealed abstract class Foo\r\n\r\n  object Foo {\r\n    case class B(x: Int) extends Foo\r\n  }\r\n}\r\n\r\nobject HelloWorld extends js.JSApp {\r\n  def main() {\r\n    (new A).call()\r\n  }\r\n}\r\n```\r\n\r\nThis will fail with a `MatchError` in 2.12.0-RC1, but works as expected (prints 1) in 2.11.8."},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/253156022","html_url":"https://github.com/scala-js/scala-js/issues/2625#issuecomment-253156022","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2625","id":253156022,"user":{"login":"gzm0","id":1140323,"avatar_url":"https://avatars.githubusercontent.com/u/1140323?v=3","gravatar_id":"","url":"https://api.github.com/users/gzm0","html_url":"https://github.com/gzm0","followers_url":"https://api.github.com/users/gzm0/followers","following_url":"https://api.github.com/users/gzm0/following{/other_user}","gists_url":"https://api.github.com/users/gzm0/gists{/gist_id}","starred_url":"https://api.github.com/users/gzm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzm0/subscriptions","organizations_url":"https://api.github.com/users/gzm0/orgs","repos_url":"https://api.github.com/users/gzm0/repos","events_url":"https://api.github.com/users/gzm0/events{/privacy}","received_events_url":"https://api.github.com/users/gzm0/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T08:51:12Z","updated_at":"2016-10-12T08:51:12Z","body":"Filed field collisions IR checking as #2627."}}
{"actor":{"display_login":"gzm0"}}