“No TypeTag available” regression #6649
Closed
Labels
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6649?orig=1 |
@xeno-by said (edited on Nov 11, 2012 11:55:50 AM UTC): scala> { class B(b:Int); typeTag[B] }
materializing requested reflect.runtime.universe.type.TypeTag[B] using `package`.this.materializeTypeTag[B](scala.reflect.runtime.`package`.universe)
<console>:30: `package`.this.materializeTypeTag[B](scala.reflect.runtime.`package`.universe) is not a valid implicit value for reflect.runtime.universe.TypeTag[B] because:
failed to typecheck the materialized tag:
cannot create a TypeTag referring to local class B
{ class B(b:Int); typeTag[B] }
^
<console>:30: error: No TypeTag available for B
{ class B(b:Int); typeTag[B] }
^
scala> { class B(b:Int); weakTypeTag[B] }
res0: reflect.runtime.universe.WeakTypeTag[_ <: Object] = WeakTypeTag[B] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In REPL:
In 2.10.0-M7, this compiles fine.
The text was updated successfully, but these errors were encountered: