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 4d9c0c5 commit 42adb61Copy full SHA for 42adb61
tests/neg/3559d.check
@@ -0,0 +1,6 @@
1
+-- [E006] Unbound Identifier Error: tests/neg/3559d.scala:7:9 ----------------------------------------------------------
2
+7 | this(f) // error
3
+ | ^
4
+ | Not found: f
5
+
6
+longer explanation available when compiling with `-explain`
tests/neg/3559d.scala
@@ -0,0 +1,9 @@
+class B {
+ def f: String = "hello"
+}
+class A(a: Any) extends B {
+ def this() = {
7
+ this(f) // error
8
+ }
9
0 commit comments