aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/not-a-legal-formal-parameter-tuple.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/not-a-legal-formal-parameter-tuple.scala')
-rw-r--r--tests/untried/neg/not-a-legal-formal-parameter-tuple.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/neg/not-a-legal-formal-parameter-tuple.scala b/tests/untried/neg/not-a-legal-formal-parameter-tuple.scala
new file mode 100644
index 000000000..c7a13557d
--- /dev/null
+++ b/tests/untried/neg/not-a-legal-formal-parameter-tuple.scala
@@ -0,0 +1,5 @@
+class C {
+ val x: ((Int, Int) => Int) = (((a, b)) => a)
+ val y: ((Int, Int, Int) => Int) = (((a, !!)) => a)
+ val z: ((Int, Int, Int) => Int) = (((a, NotAPatternVariableName, c)) => a)
+}