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 8afe82c commit 6b78d3fCopy full SHA for 6b78d3f
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