summaryrefslogtreecommitdiff
path: root/test/files/neg/missing-param-type-tuple.scala
diff options
context:
space:
mode:
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
+}