From dae0fd5bde22ba3e0fc2831c875c9350965b1cff Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Wed, 24 May 2023 17:44:52 +0200 Subject: [PATCH] test: add in a regression test for #15913 [skip community_build] closes #15913 [Cherry-picked cbd0851826024c4aaac33f155ab1e830bfaf8882] --- tests/run/i15913.scala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/run/i15913.scala diff --git a/tests/run/i15913.scala b/tests/run/i15913.scala new file mode 100644 index 000000000000..f3e98a3bfd6a --- /dev/null +++ b/tests/run/i15913.scala @@ -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 + ) + ) +}