diff --git a/tests/pos/i22567.scala b/tests/pos/i22567.scala new file mode 100644 index 000000000000..aceff25eba23 --- /dev/null +++ b/tests/pos/i22567.scala @@ -0,0 +1,10 @@ +//> using options -Werror + +object A1 { + def f1(implicit x1: String, x2: Int = 2): Unit = () +} + +object A2 { + given String = "s" + def f2 = A1.f1 +} \ No newline at end of file