Closed
Description
Compiler version
3.0.0
Minimized code
object Foo extends App {
def foo[F[_]](qux: String, quux: String = ""): F[Unit] = ???
def foo[F[_]](qux: Boolean): F[Unit] = ???
def example[F[_]](maybeQux: Option[String], bool: Boolean) =
maybeQux.fold(foo[F](bool))(foo[F](_))
}
https://scastie.scala-lang.org/LnY1kBvlQs2zclBzaeA0Vg
Output
7 | maybeQux.fold(foo[F](bool))(foo[F](_))
| ^^^
|None of the overloaded alternatives of method foo in object Foo with types
| [F[_$2]](qux: Boolean): F[Unit]
| [F[_$1]](qux: String, quux: String): F[Unit]
|match type arguments [F] and arguments ((_$4 : String))