-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implicit ClassTag for value class alias is incorrect #7375
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7375?orig=1 |
@JamesIry said: |
1 similar comment
@JamesIry said: |
@retronym said: |
@densh said: |
@densh said: scala> import scala.reflect.ClassTag
import scala.reflect.ClassTag
scala> class Foo(val n: Int) extends AnyVal
defined class Foo
scala> type F = Foo
defined type alias F
scala> println(implicitly[ClassTag[Foo]])
$line4.$read$$iw$$iw$Foo
scala> println(implicitly[ClassTag[F]])
$line4.$read$$iw$$iw$Foo I'll submit a test case anyway. |
@densh said: |
This can quite easily lead to ArrayStoreExceptions, as I'm sure you can imagine:
The text was updated successfully, but these errors were encountered: