Skip to content

Commit 7fbe032

Browse files
authored
Backport "test: add in a regression test for #15913" to LTS (#18941)
Backports #17576 to the LTS branch. PR submitted by the release tooling.
2 parents 23349d4 + dae0fd5 commit 7fbe032

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)