From 95f00213787dfdca3990808586d3dcb054b92d41 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Mon, 10 Mar 2025 21:17:26 +0100 Subject: [PATCH] chore: add regression test for #22567 --- tests/pos/i22567.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pos/i22567.scala 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