diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-02-21 15:00:55 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-02-21 15:00:55 +0100 |
commit | af709cc0ec8ae7762eafcb5cd3aa260864e84c8c (patch) | |
tree | 381296a2516d2301b19418a1bd7b0cd9dd2ec3f6 /test/files/run | |
parent | 0732822644a423baaa27000e03621a55755402fa (diff) | |
parent | 810db8540f259407decb4557aece0dfec4e58a03 (diff) | |
download | scala-af709cc0ec8ae7762eafcb5cd3aa260864e84c8c.tar.gz scala-af709cc0ec8ae7762eafcb5cd3aa260864e84c8c.tar.bz2 scala-af709cc0ec8ae7762eafcb5cd3aa260864e84c8c.zip |
Merge pull request #3564 from adriaanm/t6675
SI-6675 deprecation warning for auto-tupling in patterns
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/t6111.check | 1 | ||||
-rw-r--r-- | test/files/run/t6111.scala | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/test/files/run/t6111.check b/test/files/run/t6111.check index 7fd2e33526..1f23a87f73 100644 --- a/test/files/run/t6111.check +++ b/test/files/run/t6111.check @@ -1,2 +1,3 @@ +warning: there were 2 deprecation warning(s); re-run with -deprecation for details (8,8) (x,x) diff --git a/test/files/run/t6111.scala b/test/files/run/t6111.scala index 7cceea1d09..c0bcf17a07 100644 --- a/test/files/run/t6111.scala +++ b/test/files/run/t6111.scala @@ -1,3 +1,5 @@ +// SI-6675 DEPRECATED AUTO-TUPLING BECAUSE BAD IDEA -- MEAMAXIMACULPA +// TODO: remove this test case in 2.12, when the deprecation will go into effect and this will no longer compile // slightly overkill, but a good test case for implicit resolution in extractor calls, // along with the real fix: an extractor pattern with 1 sub-pattern should type check for all extractors // that return Option[T], whatever T (even if it's a tuple) |