We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e46406 + 9292bcc commit 72348e5Copy full SHA for 72348e5
tests/pos/i12679.scala
@@ -0,0 +1,9 @@
1
+// https://github.com/lampepfl/dotty/issues/12679
2
+
3
+object Example:
4
+ def foo[F[_]](qux: String, quux: String = ""): F[Unit] = ???
5
6
+ def foo[F[_]](qux: Boolean): F[Unit] = ???
7
8
+ def example[F[_]](maybeQux: Option[String], bool: Boolean) =
9
+ maybeQux.fold(foo[F](bool))(foo[F](_))
0 commit comments