Skip to content

Commit

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

closes scala#15913
  • Loading branch information
nicolasstucki authored May 25, 2023
2 parents 5262680 + cbd0851 commit 53723a3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/run/i15913.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// https://github.com/lampepfl/dotty/issues/15913

class injector[F]

object injectorFactory {
def apply[F](overrides: String*): injector[F] = new injector[F]

def apply[F](
bootstrapActivation: Int = ???,
overrides: Seq[String] = Seq.empty,
): injector[F] = new injector[F]
}

object Test extends App {
println(
injectorFactory[String](
bootstrapActivation = 0
)
)
}

0 comments on commit 53723a3

Please sign in to comment.