diff options
author | VladimirNik <vladimir.nikolaev9@gmail.com> | 2016-02-23 19:24:02 +0100 |
---|---|---|
committer | VladimirNik <vladimir.nikolaev9@gmail.com> | 2016-03-03 14:06:28 +0100 |
commit | 92b6677f3f79bddeaf38c634ba94197e9e805274 (patch) | |
tree | 046c2ec65b7a8fa41955e1ccd19aeef553057c18 /tests/neg/customArgs/autoTuplingTest.scala | |
parent | 447256c89148e07dfddcfc065bd5f0946b0ae9aa (diff) | |
download | dotty-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/neg/customArgs/autoTuplingTest.scala')
-rw-r--r-- | tests/neg/customArgs/autoTuplingTest.scala | 9 |
1 files changed, 9 insertions, 0 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 => + } +} |