summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/traits.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/traits.scala')
-rwxr-xr-xtest-nsc/files/pos/traits.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-nsc/files/pos/traits.scala b/test-nsc/files/pos/traits.scala
index 5fdf4b342e..605395c5a6 100755
--- a/test-nsc/files/pos/traits.scala
+++ b/test-nsc/files/pos/traits.scala
@@ -19,10 +19,11 @@ object Test {
}
trait BorderedColoredShape extends Shape with Bordered with Colored {
override def equals(other: Any) = other match {
- case that: BorderedColoredShape =>
+ case that: BorderedColoredShape => (
super.equals(that) &&
super[Bordered].equals(that) &&
super[Colored].equals(that)
+ )
case _ => false
}
}