aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/autoTuplingTest.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-08-18 18:41:43 +0200
committerMartin Odersky <odersky@gmail.com>2016-08-18 18:41:43 +0200
commit74aef53c8e894d5ce46151e098c121a73ede9539 (patch)
treec0245f8e10140e330cf4e2ecacab0dee141ae85c /tests/neg/autoTuplingTest.scala
parent806a7b3b6f8c6e7df276bceaa7b0a19c580a3486 (diff)
downloaddotty-74aef53c8e894d5ce46151e098c121a73ede9539.tar.gz
dotty-74aef53c8e894d5ce46151e098c121a73ede9539.tar.bz2
dotty-74aef53c8e894d5ce46151e098c121a73ede9539.zip
Add import back.
Needed because the test is also run in neg wihtout command line option.
Diffstat (limited to 'tests/neg/autoTuplingTest.scala')
-rw-r--r--tests/neg/autoTuplingTest.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/neg/autoTuplingTest.scala b/tests/neg/autoTuplingTest.scala
index 62f10b3ea..92126ab5d 100644
--- a/tests/neg/autoTuplingTest.scala
+++ b/tests/neg/autoTuplingTest.scala
@@ -1,3 +1,5 @@
+import language.noAutoTupling
+
object autoTuplingNeg2 {
val x = Some(1, 2) // error: too many arguments for method apply: (x: A)Some[A]