-
Notifications
You must be signed in to change notification settings - Fork 1.1k
assertion error in typer with 0.1.2-RC1 #2672
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
Hi @rkuhn ! A quick look tells me that this isn't going to be easy to figure out. If you have the time, could you try to minimize the crash to a single file? It would help a lot! |
While not surprising, I still had hope that the location of the crash would tell you something :-) I guess I’ll have to rebuild akka-typed-session from the ground up to minimize this, so I cannot promise a timeframe. |
Okay, managed to make it smaller. Use lampepfl/dotty.g8 with the following in Main.scala:
Removing the third type parameter from |
Ah: this works!
|
Thanks a lot! I minimized it further to: class Foo[T]
trait Prepend {
type Out
}
object Test {
def foo()(implicit ev: Prepend): Foo[ev.Out] = ???
def test: Unit = {
foo(): Foo[Any]
}
} |
I removed all occurrences of path-dependent return types from akka-typed-session and now it successfully compiles. |
constrainResult should behave like isSubType in this respect. This fixes scala#2672. The assertion in Applications.scala is no longer needed because it is now obviously true by design.
On this file dotc bails out with the assertion error below. Commenting out lines 135–142 changes the behavior to an assertion error in ScalaDSL.scala.
The full stack trace:
The text was updated successfully, but these errors were encountered: