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 0731c24 commit 3dc1cd7Copy full SHA for 3dc1cd7
tests/init/neg/i15764b.scala
@@ -0,0 +1,7 @@
1
+class B(val y: Int):
2
+ // println(y)
3
+ // foo()
4
+ def foo() = println(y)
5
+
6
+class C(x: Int) extends B(x):
7
+ override val y: Int = x // error: override param with non-param
tests/init/neg/i15764c.scala
@@ -0,0 +1,5 @@
+class A(val y: Int)
+class B(override val y: Int) extends A(y)
+class C(override val y: Int) extends B(7) // error
0 commit comments