diff options
Diffstat (limited to 'test/files/neg/caseinherit.check')
-rw-r--r-- | test/files/neg/caseinherit.check | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/files/neg/caseinherit.check b/test/files/neg/caseinherit.check index c185c82f70..09327a4ffa 100644 --- a/test/files/neg/caseinherit.check +++ b/test/files/neg/caseinherit.check @@ -1,10 +1,10 @@ -caseinherit.scala:2: error: case class `class B' has case ancestor `class A'. Case-to-case inheritance is prohibited. To overcome this limitation use extractors to pattern match on non-leaf nodes. -case class B(y: Int) extends A(y) - ^ -caseinherit.scala:3: error: case class `object Bippy' has case ancestor `class A'. Case-to-case inheritance is prohibited. To overcome this limitation use extractors to pattern match on non-leaf nodes. -case object Bippy extends A(55) - ^ -caseinherit.scala:6: error: case class `class Dingus' has case ancestor `class A'. Case-to-case inheritance is prohibited. To overcome this limitation use extractors to pattern match on non-leaf nodes. -case class Dingus(y: Int) extends Innocent - ^ +caseinherit.scala:3: error: case class B has case ancestor foo.A, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes. + case class B(y: Int) extends A(y) + ^ +caseinherit.scala:4: error: case object Bippy has case ancestor foo.A, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes. + case object Bippy extends A(55) + ^ +caseinherit.scala:11: error: case class Dingus has case ancestor foo.A, but case-to-case inheritance is prohibited. To overcome this limitation, use extractors to pattern match on non-leaf nodes. + case class Dingus(y: Int) extends Innocent + ^ three errors found |