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.
1 parent f92d6f1 commit fe1620bCopy full SHA for fe1620b
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