{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2806","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2806/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2806/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2806/events","html_url":"https://github.com/scala-js/scala-js/issues/2806","id":214236785,"number":2806,"title":"Companion object for ScalaJSDefined classes, or not?","user":{"login":"japgolly","id":202935,"avatar_url":"https://avatars1.githubusercontent.com/u/202935?v=3","gravatar_id":"","url":"https://api.github.com/users/japgolly","html_url":"https://github.com/japgolly","followers_url":"https://api.github.com/users/japgolly/followers","following_url":"https://api.github.com/users/japgolly/following{/other_user}","gists_url":"https://api.github.com/users/japgolly/gists{/gist_id}","starred_url":"https://api.github.com/users/japgolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japgolly/subscriptions","organizations_url":"https://api.github.com/users/japgolly/orgs","repos_url":"https://api.github.com/users/japgolly/repos","events_url":"https://api.github.com/users/japgolly/events{/privacy}","received_events_url":"https://api.github.com/users/japgolly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-14T23:25:58Z","updated_at":"2017-03-15T10:52:34Z","closed_at":null,"body":"```scala\r\n@ScalaJSDefined class X extends js.Object\r\nval X = js.constructorOf[X]\r\n```\r\nThis fails with\r\n> X is already defined as (compiler-generated) case class companion object X\r\n\r\nOk no worries, let's check it out:\r\n```scala\r\n@ScalaJSDefined class Y extends js.Object\r\nprintln(Y)\r\n```\r\nThis fails with\r\n> not found: value Y\r\n"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/286707195","html_url":"https://github.com/scala-js/scala-js/issues/2806#issuecomment-286707195","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2806","id":286707195,"user":{"login":"japgolly","id":202935,"avatar_url":"https://avatars1.githubusercontent.com/u/202935?v=3","gravatar_id":"","url":"https://api.github.com/users/japgolly","html_url":"https://github.com/japgolly","followers_url":"https://api.github.com/users/japgolly/followers","following_url":"https://api.github.com/users/japgolly/following{/other_user}","gists_url":"https://api.github.com/users/japgolly/gists{/gist_id}","starred_url":"https://api.github.com/users/japgolly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/japgolly/subscriptions","organizations_url":"https://api.github.com/users/japgolly/orgs","repos_url":"https://api.github.com/users/japgolly/repos","events_url":"https://api.github.com/users/japgolly/events{/privacy}","received_events_url":"https://api.github.com/users/japgolly/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T10:52:34Z","updated_at":"2017-03-15T10:52:34Z","body":"At the time, I was dumping the above snippet right here:\r\nhttps://github.com/japgolly/scalajs-react/blob/master/test/src/test/scala/japgolly/scalajs/react/core/RawComponentEs6Test.scala#L13\r\n\r\nYou could try cloning the repo. You'll see that it's using:\r\n* Scala 2.12.1\r\n* Scala.JS 0.6.14\r\n* SBT 0.13.13"}}
{"actor":{"display_login":"japgolly"}}