{"action":"closed","issue":{"url":"https://api.github.com/repos/xored/scala-js-react/issues/16","labels_url":"https://api.github.com/repos/xored/scala-js-react/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/xored/scala-js-react/issues/16/comments","events_url":"https://api.github.com/repos/xored/scala-js-react/issues/16/events","html_url":"https://github.com/xored/scala-js-react/issues/16","id":57680988,"number":16,"title":"Compilation error","user":{"login":"freewind","id":333781,"avatar_url":"https://avatars.githubusercontent.com/u/333781?v=3","gravatar_id":"","url":"https://api.github.com/users/freewind","html_url":"https://github.com/freewind","followers_url":"https://api.github.com/users/freewind/followers","following_url":"https://api.github.com/users/freewind/following{/other_user}","gists_url":"https://api.github.com/users/freewind/gists{/gist_id}","starred_url":"https://api.github.com/users/freewind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freewind/subscriptions","organizations_url":"https://api.github.com/users/freewind/orgs","repos_url":"https://api.github.com/users/freewind/repos","events_url":"https://api.github.com/users/freewind/events{/privacy}","received_events_url":"https://api.github.com/users/freewind/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-14T04:40:51Z","updated_at":"2015-02-14T05:07:31Z","closed_at":"2015-02-14T05:07:31Z","body":"Following code will cause compilation error:\r\n\r\n```scala\r\ncase class Props(projects: Seq[Project], onSelectProject: (Project) => Unit)\r\n\r\n@scalax\r\n  override def render(self: This) = {\r\n    <div>\r\n      {self.props.projects.map(p => <div onClick={self.props.onSelectProject(p)}>{p.name}</div>)}\r\n    </div>\r\n  }\r\n```\r\n\r\nand `Project`:\r\n\r\n```\r\ncase class Project(name: String, links: Seq[Link], description: Option[String] = None)\r\ncase class Link(name: String, url: String, description: Option[String] = None)\r\n```\r\n\r\nError: \r\n\r\n```\r\n2. Waiting for source changes... (press enter to interrupt)\r\n[info] Compiling 1 Scala source to /Users/twer/workspace/wind-links/target/scala-2.11/classes...\r\n[error] /Users/twer/workspace/wind-links/src/main/scala/in/freewind/windlinks/pages/config/ProjectLists.scala:22: overloaded method value apply with alternatives:\r\n[error]   (key: String,value: scala.scalajs.js.Dynamic,md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   [T](key: String, value: scala.scalajs.js.Dictionary[T], md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   [T](key: String, value: Map[String,T], md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Double,md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Boolean,md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: String,md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Function3[_, _, _, _],md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Function2[_, _, _],md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Function1[_, _],md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Function0[_],md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any] <and>\r\n[error]   (key: String,value: Option[Function1[_, _]],md: scala.scalajs.js.Dictionary[scala.scalajs.js.Any])scala.scalajs.js.Dictionary[scala.scalajs.js.Any]\r\n[error]  cannot be applied to (String, Unit, scala.scalajs.js.Dictionary[scala.scalajs.js.Any])\r\n[error]   @scalax\r\n[error]    ^\r\n[error] one error found\r\n[error] (compile:compile) Compilation failed\r\n[error] Total time: 1 s, completed Feb 14, 2015 12:36:53 PM\r\n3. Waiting for source changes... (press enter to interrupt)\r\n```\r\n\r\nBut if I remove the `onClick={self.props.onSelectProject(p)}` part, it will be OK.\r\n\r\nIs it because the parameter `p` is not a normal type like `string`, but a custom complex type `Project`?"}}