diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-06 15:07:08 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-06 15:07:08 -0800 |
commit | fe86aedf4acbb16159c8036edeadbda0bd380771 (patch) | |
tree | 27c00ec8e2a50815985c8f1d3bf4793e318c6a20 /test/files/neg/t6534.check | |
parent | 9d265965294e65c8f20a027254042c9468af83d9 (diff) | |
parent | a5714183d1a197f5b7b69306db6be28b2724bbb7 (diff) | |
download | scala-fe86aedf4acbb16159c8036edeadbda0bd380771.tar.gz scala-fe86aedf4acbb16159c8036edeadbda0bd380771.tar.bz2 scala-fe86aedf4acbb16159c8036edeadbda0bd380771.zip |
Merge pull request #1576 from paulp/merge-210
Merge 2.10.x/2.10.0-RC2 into master
Diffstat (limited to 'test/files/neg/t6534.check')
-rw-r--r-- | test/files/neg/t6534.check | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/t6534.check b/test/files/neg/t6534.check new file mode 100644 index 0000000000..52e70cfa8a --- /dev/null +++ b/test/files/neg/t6534.check @@ -0,0 +1,17 @@ +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 + ^ +t6534.scala:7: error: redefinition of hashCode method. See SIP-15, criterion 4. is not allowed in value class +class Bippy4(val x: Int) extends AnyVal { override def hashCode = -1 } // error + ^ +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 |