com-lihaoyi / scalatags

ScalaTags is a small XML/HTML construction library for Scala.
https://com-lihaoyi.github.io/scalatags/
MIT License
758 stars 117 forks source link

Compilation failed: reassignment to val #157

Closed Tamriel closed 7 years ago

Tamriel commented 7 years ago

With your example

val labelElem = label("Default").render

val inputElem = input(
  `type`:="text",
  onfocus := { () => labelElem.textContent = ""}
).render

I get reassignment to val in the line `type` := "text" when I use Scala 2.12.1 instead of 2.11.8.

Tamriel commented 7 years ago

Nevermind, somehow the ` had a wrong encoding or something similar and caused the error.