Skip to content

Commit cbd0851

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

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/run/i15913.scala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// https://github.com/lampepfl/dotty/issues/15913
2+
3+
class injector[F]
4+
5+
object injectorFactory {
6+
def apply[F](overrides: String*): injector[F] = new injector[F]
7+
8+
def apply[F](
9+
bootstrapActivation: Int = ???,
10+
overrides: Seq[String] = Seq.empty,
11+
): injector[F] = new injector[F]
12+
}
13+
14+
object Test extends App {
15+
println(
16+
injectorFactory[String](
17+
bootstrapActivation = 0
18+
)
19+
)
20+
}

0 commit comments

Comments
 (0)