-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Wrong "isInstanceOf[Array[?]]" #12071
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
yes, that's a regression since Scala 2; it should return false. good catch! the others are not bugs. |
note that autoboxing isn't the culprit here, and
|
The erasure of |
Guillaume's PR: #12103 |
Compiler version
scala-3.0.0-RC2
Minimized code
Expectation
1.asInstanceOf[Array[?]]
should raise an exception(1: Any).isInstanceOf[Array[?]]
should raise an exception or return false(1: Any).isInstanceOf[Array[?]]
should raise an exceptionThe text was updated successfully, but these errors were encountered: