-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Compiler crash in 3.7 nightly while compiling http4s-related code, "invalid new prefix" #22737
Comments
Interestingly, without the import cats.effect.IO
import org.http4s.{EntityBody, Response}
extension (res: Response[IO]) {
def withEntity(f: EntityBody[IO] => EntityBody[IO]): Response[IO] = res.copy(body = f(res.body))
} |
Possibly related to #22727 since that also uses a type alias and an |
Last good release: 3.7.0-RC1-bin-20250222-4dc4668-NIGHTLY
Suspecting it might be a duplicate, we'd need to minimize it without the dependency to be sure. |
I'm checking the extension check right now, as I have an open PR that touches that code. I'll update in a moment. |
I confirm it fails with 3.nightly but not with local #22708 I'll tweak to convince myself that the PR is the fix. |
OK, I confirmed that it crashes without the tweak in the PR. This is |
Compiler version
3.7.0-RC1-bin-20250306-73ba485-NIGHTLY
Minimized code
Output
Expectation
It should compile without any error, as in previous versions
The text was updated successfully, but these errors were encountered: