Skip to content
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

look at erased types when deciding things about arrays #6126

Closed
scabug opened this issue Jul 23, 2012 · 4 comments
Closed

look at erased types when deciding things about arrays #6126

scabug opened this issue Jul 23, 2012 · 4 comments

Comments

@scabug
Copy link

scabug commented Jul 23, 2012

originally reported as #5904

scala> trait LogLevelType
defined trait LogLevelType

scala> type LogLevel = Int with LogLevelType
defined type alias LogLevel

scala>  final val ErrorLevel = 1.asInstanceOf[Int with LogLevelType]
ErrorLevel: Int with LogLevelType = 1

scala> List(ErrorLevel, ErrorLevel)
java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;
        at .<init>(<console>:10)
@scabug
Copy link
Author

scabug commented Jul 23, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6126?orig=1
Reporter: @adriaanm

@scabug
Copy link
Author

scabug commented Jan 13, 2013

@retronym said:
scala/scala#1891

@scabug
Copy link
Author

scabug commented Jan 14, 2013

@adriaanm said:
"This started working after the merge fe1110f"

@scabug scabug closed this as completed Jan 14, 2013
@scabug
Copy link
Author

scabug commented Mar 13, 2013

@paulp said:
For posterity, the exact commit in which this was fixed is 2b09d8caf5 .

I use "exact" very loosely. "82 files changed, 1367 insertions(+), 1187 deletions(-)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants