diff options
author | Paul Phillips <paulp@improving.org> | 2013-04-23 13:55:41 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-04-23 15:39:21 -0700 |
commit | 1da48a45b62879c2bd2904342eeff7e6e568350a (patch) | |
tree | cdf5f7b1903d1523cb0391bda745bc9ca29836da /test | |
parent | 0f1a004048089dc2f51c5e1a11419072102b896b (diff) | |
download | scala-1da48a45b62879c2bd2904342eeff7e6e568350a.tar.gz scala-1da48a45b62879c2bd2904342eeff7e6e568350a.tar.bz2 scala-1da48a45b62879c2bd2904342eeff7e6e568350a.zip |
Eliminate a pile of -Xlint warnings.
Some unused private code, unused imports, and points where
an extra pair of parentheses is necessary for scalac to have
confidence in our intentions.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/neg/t6534.check | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/test/files/neg/t6534.check b/test/files/neg/t6534.check index 52e70cfa8a..c2e80b377a 100644 --- a/test/files/neg/t6534.check +++ b/test/files/neg/t6534.check @@ -1,9 +1,3 @@ -t6534.scala:4: warning: Implementation of equals inherited from trait Foo overridden in class Bippy1 to enforce value class semantics -class Bippy1(val x: Int) extends AnyVal with Foo { } // warn - ^ -t6534.scala:5: warning: Implementation of hashCode inherited from trait Ding overridden in class Bippy2 to enforce value class semantics -class Bippy2(val x: Int) extends AnyVal with Ding { } // warn - ^ t6534.scala:6: error: redefinition of equals method. See SIP-15, criterion 4. is not allowed in value class class Bippy3(val x: Int) extends AnyVal { override def equals(x: Any) = false } // error ^ @@ -13,5 +7,4 @@ class Bippy4(val x: Int) extends AnyVal { override def hashCode = -1 } t6534.scala:9: error: redefinition of equals method. See SIP-15, criterion 4. is not allowed in value class case class Bippy6(val x: Int) extends AnyVal { override def productPrefix = "Dingo" ; override def equals(x: Any) = false } // error ^ -two warnings found three errors found |