diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-04-29 14:37:55 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-04-29 14:51:39 +1000 |
commit | fd14b6184250430b826c067bd7f3685d27ba9773 (patch) | |
tree | 763e7357a387534943c6538a8af6b0d3638bb218 /test/files | |
parent | eeba018f27487e161de93d93c01cb8b2d8132f8f (diff) | |
download | scala-fd14b6184250430b826c067bd7f3685d27ba9773.tar.gz scala-fd14b6184250430b826c067bd7f3685d27ba9773.tar.bz2 scala-fd14b6184250430b826c067bd7f3685d27ba9773.zip |
SI-9285 Don't warn about non-sensible equals in synthetic methods
Notably, in the synthetic equals method of a case class. Otherwise,
we get an unsuppressable warning when defining a case class with a
`Unit`-typed parameter, which some folks use a placeholder for
real type while evolving a design.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t9285.flags | 1 | ||||
-rw-r--r-- | test/files/pos/t9285.scala | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/test/files/pos/t9285.flags b/test/files/pos/t9285.flags new file mode 100644 index 0000000000..85d8eb2ba2 --- /dev/null +++ b/test/files/pos/t9285.flags @@ -0,0 +1 @@ +-Xfatal-warnings diff --git a/test/files/pos/t9285.scala b/test/files/pos/t9285.scala new file mode 100644 index 0000000000..b7146cdf1c --- /dev/null +++ b/test/files/pos/t9285.scala @@ -0,0 +1 @@ +case class C(placeholder: Unit) |