aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVladimirNik <vladimir.nikolaev9@gmail.com>2016-02-23 19:24:02 +0100
committerVladimirNik <vladimir.nikolaev9@gmail.com>2016-03-03 14:06:28 +0100
commit92b6677f3f79bddeaf38c634ba94197e9e805274 (patch)
tree046c2ec65b7a8fa41955e1ccd19aeef553057c18 /tests
parent447256c89148e07dfddcfc065bd5f0946b0ae9aa (diff)
downloaddotty-92b6677f3f79bddeaf38c634ba94197e9e805274.tar.gz
dotty-92b6677f3f79bddeaf38c634ba94197e9e805274.tar.bz2
dotty-92b6677f3f79bddeaf38c634ba94197e9e805274.zip
Neg tests: remove negTest flag; neg tests are binded to neg directory
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/customArgs/autoTuplingTest.scala9
-rw-r--r--tests/pos/autoTuplingTest.scala4
2 files changed, 11 insertions, 2 deletions
diff --git a/tests/neg/customArgs/autoTuplingTest.scala b/tests/neg/customArgs/autoTuplingTest.scala
new file mode 100644
index 000000000..7321a8382
--- /dev/null
+++ b/tests/neg/customArgs/autoTuplingTest.scala
@@ -0,0 +1,9 @@
+object autoTupling {
+
+ val x = Some(1, 2) // error when running with -language:noAutoTupling
+
+ x match {
+ case Some(a, b) => a + b // error // error when running with -language:noAutoTupling
+ case None =>
+ }
+}
diff --git a/tests/pos/autoTuplingTest.scala b/tests/pos/autoTuplingTest.scala
index 7321a8382..523411a1a 100644
--- a/tests/pos/autoTuplingTest.scala
+++ b/tests/pos/autoTuplingTest.scala
@@ -1,9 +1,9 @@
object autoTupling {
- val x = Some(1, 2) // error when running with -language:noAutoTupling
+ val x = Some(1, 2)
x match {
- case Some(a, b) => a + b // error // error when running with -language:noAutoTupling
+ case Some(a, b) => a + b
case None =>
}
}