-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Failed nightly test with Java 11 #8501
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
@anatoliykmetyuk this might be a blocker for #8496 |
Actually it first failed in https://dotty-ci.epfl.ch/lampepfl/dotty/4798 |
probably caused by #8452. Not sure what's going on but I don't really understand why a mini-phase is a better fix than not doing an expansion when the expected type of an implicit function type is the same function type. |
Yeah, no nightlies have been published since 6th March: https://repo1.maven.org/maven2/ch/epfl/lamp/dotty-compiler_0.23/ |
The test in question was introduced by scala#8386. The test was failing on Java 11 from the very first time it was introduced. The first commit where `testCompilation context-functions` fails under Java 11 is cbd21a0.
Note that the this test runs correctly under Java 11 with a nightly from before #8386 so it is a regression. |
Yes, that's what I meant. |
Erasure.Boxing.etaExpand generates closures, but did not run the same closure adaptation code used in Erasure#typedClosure which could lead to type mismatches at runtime when invoking it. Fixed by moving out the adaptation logic from Erasure#typedClosure into Erasure.Boxing.adaptClosure and reusing this in Erasure.Boxing.etaExpand. This fixes tests/run/context-functions.scala on Java 11.
Fix #8501: Run closure adaptation in Erasure.etaExpand
Nightly build failed
tests/run/context-functions.scala
with Java 11.https://dotty-ci.epfl.ch/lampepfl/dotty/4916/1/7
Restarted test: https://dotty-ci.epfl.ch/lampepfl/dotty/4918
The text was updated successfully, but these errors were encountered: