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
Type projection on parameterized refinement fails pickling test #7445
Comments
Further minimized without match types: object Main {
type O1[A] = {
type OutInner[X] = Unit
type Out = OutInner[A]
}
def f1: O1[Int]#Out = ???
} error:
|
Trying this out, the minimized version now compiles. //> using scala 3.3.1-RC1-bin-20230510-d6c643c-NIGHTLY
object Main {
type O1[A] = {
type OutInner[X] = Unit
type Out = OutInner[A]
}
def f1: O1[Int]#Out = ???
} I'm gong to go ahead and close, but feel free to report back if I'm misunderstanding and this issue still persists. |
This adds in a regression test for the minimized issue, but the original one now has a different issue with pickling. I've added this in as well, but added it to the excludes.
I was a bit too eager with closing this. While the minimized version does now compile, the original one has a giant stacktrace that fails the pickling test. I've gone ahead and added tests for these in #17475, but I'll re-open this due to the pickling failure. The stacktrace is literally thousands of lines long, so I didn't include it. |
This adds in a regression test for the minimized issue, but the original one now has a different issue with pickling. I've added this in as well, but added it to the excludes.
So this adds in a test that shows that the minimized version of the original issue is fixed, but the original report now fails the pickling tests. I've gone ahead and added a test for that as well, but added it to the excludes. I'll reopen the issue and mention this update.
minimized code
expectation
The code works fine. If no partial application is used it works fine.
https://scastie.scala-lang.org/IhFycVEdRVmJOjSAtXCw6Q
The text was updated successfully, but these errors were encountered: