-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
inlined match on tuple, and expanding with *:
causes class cast exception at runtime
#15302
Comments
Further minimization:
|
*:
causes class cast exception at runtime
It seems to be a bug with the erasure of the type |
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
May 30, 2022
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 2, 2022
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 2, 2022
nicolasstucki
added a commit
to dotty-staging/dotty
that referenced
this issue
Jun 9, 2022
bishabosha
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Oct 18, 2022
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Compiler version
3.1.3-RC4, 3.2.0-RC1-bin-20220526-1ea177d-NIGHTLY-git-1ea177d
Minimized code
Output
java.lang.ClassCastException: class scala.Tuple3 cannot be cast to class scala.Tuple1 (scala.Tuple3 and scala.Tuple1 are in unnamed module of loader sbt.internal.ScalaLibraryClassLoader @3401c1d7)
pointing to the end of the flatConcat2 definition
Expectation
This works if the
inline
is removedShould not throw a ClassCastException.
Note, the match type of the def is:
but adding that does not change anything
The text was updated successfully, but these errors were encountered: