aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/synthetics.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/synthetics.scala')
-rw-r--r--tests/pos/synthetics.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/synthetics.scala b/tests/pos/synthetics.scala
index c7d49df70..c870cb1a4 100644
--- a/tests/pos/synthetics.scala
+++ b/tests/pos/synthetics.scala
@@ -2,3 +2,11 @@ case class C(x: Int, var y: String) {
}
+
+class Top {
+
+ final override def hashCode: Int = 2
+
+}
+
+case class Sub() extends Top