Skip to content

Commit

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

closes scala#15546
  • Loading branch information
ckipp01 committed May 24, 2023
1 parent 261a5ca commit 4841453
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/pos/i15546.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// https://github.com/lampepfl/dotty/issues/15546

trait Foo[F[_]]

object Bug {
def apply[F[_]: Foo](
await: Boolean,
whatever: Int = 0
): Nothing = ???

def apply[F[_]: Foo]: Nothing =
apply[F](false)
}

0 comments on commit 4841453

Please sign in to comment.