We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aa079a5 + fe1620b commit 833a41eCopy full SHA for 833a41e
tests/pos/i17008.scala
@@ -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