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 18a06aa commit 3881dd8Copy full SHA for 3881dd8
tests/neg/i4564a.scala
@@ -3,4 +3,4 @@ class BaseCP[T] {
3
def apply(x: T): ClashPoly = if (???) ClashPoly(1) else ???
4
}
5
object ClashPoly extends BaseCP[Int]
6
-case class ClashPoly private(x: Int) // private method apply cannot override method apply in class BaseCP
+case class ClashPoly private(x: Int) // error: private method apply cannot override method apply in class BaseCP
0 commit comments