Skip to content

Commit

Permalink
Dupe fix when finding default arg getters (#17058)
Browse files Browse the repository at this point in the history
Duplicate of #16814.
dwijnand authored Mar 7, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents aa079a5 + fe1620b commit 833a41e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/pos/i17008.scala
Original file line number Diff line number Diff line change
@@ -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")
}
}

0 comments on commit 833a41e

Please sign in to comment.