-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Erasure: scala.Array survives erasure. #996
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
Comments
You need to pull the updated dotty-library, otherwise the file is rejected by Typer. |
@odersky, could you please help me reproduce the issue? than I get error from typer:
|
@DarkDimius You need to compile with -language:Scala2. Then it passes the typer for me. |
Was able to reproduce. |
DarkDimius
added a commit
to dotty-staging/dotty
that referenced
this issue
Dec 20, 2015
fixed in #1005 |
DarkDimius
added a commit
to dotty-linker/dotty
that referenced
this issue
May 9, 2016
OlivierBlanvillain
pushed a commit
to OlivierBlanvillain/dotty
that referenced
this issue
Dec 8, 2016
OlivierBlanvillain
pushed a commit
to OlivierBlanvillain/dotty
that referenced
this issue
Dec 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compiling
gives a crash in the backend. Everything -Ychecks OK before.
java.lang.AssertionError: assertion failed: class Array
at scala.Predef$.assert(Predef.scala:165)
at dotty.tools.backend.jvm.DottyBackendInterface$$anon$10.primitiveOrClassToBType$1(DottyBackendInterface.scala:814)
at dotty.tools.backend.jvm.DottyBackendInterface$$anon$10.toTypeKind(DottyBackendInterface.scala:835)
at scala.tools.nsc.backend.jvm.BCodeHelpers$BCInnerClassGen$class.toTypeKind(BCodeHelpers.scala:272)
at scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.toTypeKind(BCodeSkelBuilder.scala:51)
at scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder.tpeTK(BCodeSkelBuilder.scala:84)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genTypeApply(BCodeBodyBuilder.scala:582)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:429)
The text was updated successfully, but these errors were encountered: