diff options
author | Martin Odersky <odersky@gmail.com> | 2014-11-14 16:11:31 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-11-14 16:11:31 +0100 |
commit | 4d5a901d10a28c286f8754134f5030daae0d239b (patch) | |
tree | 41936bfc93fb242db330aeac3627038e9c1ef142 /tests/pos/synthetics.scala | |
parent | 9dae49b8994f72f2b4b83665c53a63b49896c5de (diff) | |
download | dotty-4d5a901d10a28c286f8754134f5030daae0d239b.tar.gz dotty-4d5a901d10a28c286f8754134f5030daae0d239b.tar.bz2 dotty-4d5a901d10a28c286f8754134f5030daae0d239b.zip |
Fix OverridingPairs
OverridingPairs had several bugs which caused pairs to be lost, which caused
missing overrides checks. Fixing OverridingPairs revealed several test failures
(and a problem in Synthetics generation which was fixed in the last commit).
Tests that became negative are all moved into neg/overrides.scala, and the
original versions in pos were fixed.
Diffstat (limited to 'tests/pos/synthetics.scala')
-rw-r--r-- | tests/pos/synthetics.scala | 8 |
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 |