Skip to content

Commit 4841453

Browse files
committed
test: add in a regression test for #15546
[skip community_build] closes #15546
1 parent 261a5ca commit 4841453

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/pos/i15546.scala

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// https://github.com/lampepfl/dotty/issues/15546
2+
3+
trait Foo[F[_]]
4+
5+
object Bug {
6+
def apply[F[_]: Foo](
7+
await: Boolean,
8+
whatever: Int = 0
9+
): Nothing = ???
10+
11+
def apply[F[_]: Foo]: Nothing =
12+
apply[F](false)
13+
}
14+

0 commit comments

Comments
 (0)