aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1385.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-25 10:35:59 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-25 10:36:07 +0200
commit226c7cb390d53acc2c18918d5a8f4b7133d4a4ac (patch)
tree9b2c729a0afb051adb95a1237a4291d075747778 /tests/pos/i1385.scala
parent11f06fe8435c118a8476b2c197c1973ea4c647aa (diff)
downloaddotty-226c7cb390d53acc2c18918d5a8f4b7133d4a4ac.tar.gz
dotty-226c7cb390d53acc2c18918d5a8f4b7133d4a4ac.tar.bz2
dotty-226c7cb390d53acc2c18918d5a8f4b7133d4a4ac.zip
Fix #1385: Temporarily lift 22 limit for functions
Diffstat (limited to 'tests/pos/i1385.scala')
-rw-r--r--tests/pos/i1385.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i1385.scala b/tests/pos/i1385.scala
new file mode 100644
index 000000000..d9fc015ce
--- /dev/null
+++ b/tests/pos/i1385.scala
@@ -0,0 +1,7 @@
+object Test {
+def foo22[T](c1:T, c2:T, c3:T, c4:T, c5:T, c6:T, c7:T, c8:T, c9:T, c10:T, c11:T, c12:T, c13:T, c14:T, c15:T, c16:T, c17:T, c18:T, c19:T, c20:T, c21:T, c22:T): Int => T = {
+ (a: Int) => { // This labda ends with 23 parameters (c1 to c22 and a)
+ c22; c21; c20; c19; c18; c17; c16; c15; c14; c13; c12; c11; c10; c9; c8; c7; c6; c5; c4; c3; c2; c1
+ }
+ }
+}