From fe1620bb2362e8ca359899765de4904a5bcdc49c Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Tue, 7 Mar 2023 08:40:36 +0000 Subject: [PATCH] Dupe fix when finding default arg getters Duplicate of i16814. --- tests/pos/i17008.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pos/i17008.scala diff --git a/tests/pos/i17008.scala b/tests/pos/i17008.scala new file mode 100644 index 000000000000..2bf0f155afbc --- /dev/null +++ b/tests/pos/i17008.scala @@ -0,0 +1,9 @@ +abstract class A { + protected def foo(text: String, bar: () => Unit = () => ()): Unit = println(s"$text, $bar") +} + +class B extends A { + def f1(): Unit = { + super.foo("X") + } +}