diff options
Diffstat (limited to 'test/files/neg/not-a-legal-formal-parameter-tuple.scala')
-rw-r--r-- | test/files/neg/not-a-legal-formal-parameter-tuple.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/not-a-legal-formal-parameter-tuple.scala b/test/files/neg/not-a-legal-formal-parameter-tuple.scala new file mode 100644 index 0000000000..c7a13557df --- /dev/null +++ b/test/files/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) +} |