aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Stucki <nicolas.stucki@gmail.com>2017-02-01 10:04:19 +0100
committerGitHub <noreply@github.com>2017-02-01 10:04:19 +0100
commitb5185f1b4481ef61243741c7f7ed0ba8f696776b (patch)
tree7f7c18662e3e011374d1f2bbe78893e8ffac2722 /tests
parentaf7fdb32df34b352bf39f01a26653b169e0d55cf (diff)
parentf7278e16ffa8ff242b7d985803015170dbf80ce7 (diff)
downloaddotty-b5185f1b4481ef61243741c7f7ed0ba8f696776b.tar.gz
dotty-b5185f1b4481ef61243741c7f7ed0ba8f696776b.tar.bz2
dotty-b5185f1b4481ef61243741c7f7ed0ba8f696776b.zip
Merge pull request #1919 from dotty-staging/fix-#1915
Fix #1915 Synthetic function traits need NoInits flag
Diffstat (limited to 'tests')
-rw-r--r--tests/run/i1915.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/i1915.scala b/tests/run/i1915.scala
new file mode 100644
index 000000000..ee192f6fe
--- /dev/null
+++ b/tests/run/i1915.scala
@@ -0,0 +1,9 @@
+object Test {
+ def main(args: Array[String]) = {
+ assert(new IntFunction26().apply(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26) == 42)
+ }
+}
+
+class IntFunction26 extends Function26[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] {
+ def apply(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) = 42
+}