summaryrefslogtreecommitdiff
path: root/test/files/neg/missing-param-type-tuple.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-12-03 23:49:31 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-12-03 23:49:31 -0800
commitf9a3b8206b9235edde322a446fa329f38667306e (patch)
tree794c23753f393e5ba7a8dc3a5c35a8efd941e56c /test/files/neg/missing-param-type-tuple.scala
parenta21253f54359b4714eeff986d5c1394b0a46a182 (diff)
parente571c9cc3ee5a9e96b899285cdd2df3cdce06898 (diff)
downloadscala-f9a3b8206b9235edde322a446fa329f38667306e.tar.gz
scala-f9a3b8206b9235edde322a446fa329f38667306e.tar.bz2
scala-f9a3b8206b9235edde322a446fa329f38667306e.zip
Merge pull request #3202 from retronym/topic/function1-tuplen
Diminished Tuple Confusion
Diffstat (limited to 'test/files/neg/missing-param-type-tuple.scala')
-rw-r--r--test/files/neg/missing-param-type-tuple.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/missing-param-type-tuple.scala b/test/files/neg/missing-param-type-tuple.scala
new file mode 100644
index 0000000000..72c0c82034
--- /dev/null
+++ b/test/files/neg/missing-param-type-tuple.scala
@@ -0,0 +1,8 @@
+class C {
+
+ val x: ((Int, Int)) => Int = (a, b) => 0
+
+ val y: ((Int, Int, Int)) => Int = (a, b, !!) => 0
+
+ val z: ((Int, Int, Int)) => Int = (a, NotAVariablePatternName, c) => 0
+}