Skip to content

Commit fe1620b

Browse files
committed
Dupe fix when finding default arg getters
Duplicate of i16814.
1 parent f92d6f1 commit fe1620b

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)