Skip to content

Commit 9292bcc

Browse files
committed
test: add in a regression test for #12679
[skip community_build] closes #12679
1 parent b0ccf40 commit 9292bcc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i12679.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)