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.
1 parent b0ccf40 commit 944a2dfCopy full SHA for 944a2df
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