diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-27 11:26:46 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-28 19:34:42 +0100 |
commit | 860fd56990d0e6e24a404c5054e5821b18f7870f (patch) | |
tree | 60a308d4fc2fdaae103d41730562e3325c54f53f /tests/run/i2004.scala | |
parent | 1d124e9455ecb56d8fcfa42c4523f70c5cb0a952 (diff) | |
download | dotty-860fd56990d0e6e24a404c5054e5821b18f7870f.tar.gz dotty-860fd56990d0e6e24a404c5054e5821b18f7870f.tar.bz2 dotty-860fd56990d0e6e24a404c5054e5821b18f7870f.zip |
Independent test case, mentioned in #2004.
Diffstat (limited to 'tests/run/i2004.scala')
-rw-r--r-- | tests/run/i2004.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/i2004.scala b/tests/run/i2004.scala new file mode 100644 index 000000000..ff21a6cc9 --- /dev/null +++ b/tests/run/i2004.scala @@ -0,0 +1,11 @@ +object Test { + def main(args: Array[String]) = { + val f: (Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int, Int,Int, Int, Int, Int, Int, Int, Int, Int, Int, Int) => Int = + { + (x1: Int, x2: Int, x3: Int, x4: Int, x5: Int, x6: Int, x7: Int, x8: Int, x9: Int, x10: Int, x11: Int, x12: Int, x13: Int, x14: Int, x15: Int, x16: Int, x17: Int, x18: Int, x19: Int, x20: Int, x21: Int, x22: Int, x23: Int, x24: Int, x25: Int, x26: Int) => + x1 + } + println(f.apply(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)) + + } +} |