Skip to content

Commit 833a41e

Browse files
authored
Dupe fix when finding default arg getters (#17058)
Duplicate of #16814.
2 parents aa079a5 + fe1620b commit 833a41e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/pos/i17008.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
abstract class A {
2+
protected def foo(text: String, bar: () => Unit = () => ()): Unit = println(s"$text, $bar")
3+
}
4+
5+
class B extends A {
6+
def f1(): Unit = {
7+
super.foo("X")
8+
}
9+
}

0 commit comments

Comments
 (0)