summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2016-05-30 11:56:31 +0200
committerLukas Rytz <lukas.rytz@typesafe.com>2016-05-30 11:56:31 +0200
commit9edbe3d671d31581d278b309c89d5c05bb2d8295 (patch)
treedee9e193bde0adc97d61e650c44b04e3423dfe91 /test/files/neg
parent7d5a0b326deb5fd6efbbe0d8b1f32894589a3118 (diff)
parent0b79f4bf586268947b3e72750413e7106c4ad46e (diff)
downloadscala-9edbe3d671d31581d278b309c89d5c05bb2d8295.tar.gz
scala-9edbe3d671d31581d278b309c89d5c05bb2d8295.tar.bz2
scala-9edbe3d671d31581d278b309c89d5c05bb2d8295.zip
Merge pull request #5191 from som-snytt/issue/9382
SI-9382 Privatize enhanced x in Tuple2Zipped.Ops
Diffstat (limited to 'test/files/neg')
-rw-r--r--test/files/neg/t9382.check10
-rw-r--r--test/files/neg/t9382.scala6
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/t9382.check b/test/files/neg/t9382.check
new file mode 100644
index 0000000000..93bf48926a
--- /dev/null
+++ b/test/files/neg/t9382.check
@@ -0,0 +1,10 @@
+t9382.scala:3: error: value x is not a member of (List[Int], List[Int])
+ def f = (List(1,2,3), List(4,5,6)).x
+ ^
+t9382.scala:4: error: value x is not a member of (List[Int], List[Int], List[Int])
+ def g = (List(1,2,3), List(4,5,6), List(7,8,9)).x
+ ^
+t9382.scala:5: error: value x is not a member of (Int, Int)
+ def huh = (1,2).x
+ ^
+three errors found
diff --git a/test/files/neg/t9382.scala b/test/files/neg/t9382.scala
new file mode 100644
index 0000000000..19703525e4
--- /dev/null
+++ b/test/files/neg/t9382.scala
@@ -0,0 +1,6 @@
+
+trait T {
+ def f = (List(1,2,3), List(4,5,6)).x
+ def g = (List(1,2,3), List(4,5,6), List(7,8,9)).x
+ def huh = (1,2).x
+}