diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-05 17:29:28 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-05 17:29:28 +0000 |
commit | f7f5b50848c8c0efd30abe17467d1ef443760ec5 (patch) | |
tree | 6ea288d5af2492fce0420b669262cfe50831e13f /test/files/pos | |
parent | 234336d7b1ca19ae496a616012733a7a98462e4b (diff) | |
download | scala-f7f5b50848c8c0efd30abe17467d1ef443760ec5.tar.gz scala-f7f5b50848c8c0efd30abe17467d1ef443760ec5.tar.bz2 scala-f7f5b50848c8c0efd30abe17467d1ef443760ec5.zip |
Rewrote the case class synthetic equals method ...
Rewrote the case class synthetic equals method to be more efficient and
to cause fewer problems for compiler hackers who are always saying stuff
like "the only place this comes up is case class equals..." No review.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/polymorphic-case-class.flags | 1 | ||||
-rw-r--r-- | test/files/pos/polymorphic-case-class.scala | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/files/pos/polymorphic-case-class.flags b/test/files/pos/polymorphic-case-class.flags new file mode 100644 index 0000000000..464cc20ea6 --- /dev/null +++ b/test/files/pos/polymorphic-case-class.flags @@ -0,0 +1 @@ +-Xfatal-warnings -unchecked
\ No newline at end of file diff --git a/test/files/pos/polymorphic-case-class.scala b/test/files/pos/polymorphic-case-class.scala new file mode 100644 index 0000000000..5ed5eeddc9 --- /dev/null +++ b/test/files/pos/polymorphic-case-class.scala @@ -0,0 +1,2 @@ +// no unchecked warnings +case class Bippy[T, -U, +V](x: T, z: V) { } |