summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-02-19 20:58:52 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-02-19 22:06:00 -0800
commit810db8540f259407decb4557aece0dfec4e58a03 (patch)
tree21b2a9b5432c6d1ba597da09e952a3426c1a699e /test/files/run
parent2ead4d6aa3de402f269252190aaa9075a990e098 (diff)
downloadscala-810db8540f259407decb4557aece0dfec4e58a03.tar.gz
scala-810db8540f259407decb4557aece0dfec4e58a03.tar.bz2
scala-810db8540f259407decb4557aece0dfec4e58a03.zip
SI-6675 deprecation warning for auto-tupling in patterns
NOTE: when the deprecation warning becomes an error, SI-6111 must become a `won't fix`
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t6111.check1
-rw-r--r--test/files/run/t6111.scala2
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)