Skip to content

Commit

Permalink
test: add in a regression for scala#12679
Browse files Browse the repository at this point in the history
[skip community_build]

closes scala#12679
  • Loading branch information
ckipp01 committed May 14, 2023
1 parent b0ccf40 commit 944a2df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i12679.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// https://github.com/lampepfl/dotty/issues/12679

object Example:
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](_))

0 comments on commit 944a2df

Please sign in to comment.