scala / bug

Scala 2 bug reports only. Please, no questions — proper bug reports only.
https://scala-lang.org
232 stars 21 forks source link

@compileTimeOnly does not work with value classes #8498

Closed scabug closed 10 years ago

scabug commented 10 years ago
Welcome to Scala version 2.10.3 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_45).
Type in expressions to have them evaluated.
Type :help for more information.

scala> class C(val s: String) extends AnyVal {
     |   @scala.reflect.internal.annotations.compileTimeOnly("error")
     |   def error = ???
     | }
<console>:9: error: error
         def error = ???
                     ^
scabug commented 10 years ago

Imported From: https://issues.scala-lang.org/browse/SI-8498?orig=1 Reporter: @Atry Affected Versions: 2.10.3, 2.10.4, 2.11.0

scabug commented 10 years ago

Mathias Doenitz (sirthias) said: Just stumbled upon this as well in parboiled2.

scabug commented 10 years ago

@gourlaysama said: https://github.com/scala/scala/pull/3932