We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.2.1-RC1-bin-20220627-4be1482-NIGHTLY
//> using scala "3.2.1-RC1-bin-20220627-4be1482-NIGHTLY" trait Foo[F[_]] object Bug { def apply[F[_]: Foo]( await: Boolean, whatever: Int = 0 ): Nothing = ??? def apply[F[_]: Foo]: Nothing = apply[F](false) }
[error] ./bug.scala:12:5: None of the overloaded alternatives of method apply in object Bug with types [error] [F[_$3]](implicit evidence$2: Foo[F]): Nothing [error] [F[_$2]](await: Boolean, whatever: Int)(implicit evidence$1: Foo[F]): Nothing [error] match type arguments [F] and arguments ((false : Boolean)) [error] apply[F](false) [error] ^^^^^
It compiles in 2.12 and 2.13.
The text was updated successfully, but these errors were encountered:
Workaround:
trait Foo[F[_]] object Bug { def apply[F[_]]( await: Boolean, whatever: Int = 0 )(using Foo[F]): Nothing = ??? def apply[F[_]](using Foo[F]): Nothing = apply[F](false) }
Sorry, something went wrong.
It also works with -source future, since that translates context bounds into the workaround code.
-source future
test: add in a regression test for scala#15546
4841453
[skip community_build] closes scala#15546
test: add in a regression test for #15546 (#17569)
32add3d
[skip community_build] closes #15546
Scala3
Supervisor
Successfully merging a pull request may close this issue.
Compiler version
3.2.1-RC1-bin-20220627-4be1482-NIGHTLY
Minimized code
Output
Expectation
It compiles in 2.12 and 2.13.
The text was updated successfully, but these errors were encountered: