diff options
author | odersky <odersky@gmail.com> | 2017-02-08 22:22:53 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 22:22:53 +1100 |
commit | 75bea8dccce2bc3c0e8298ee71061c9871fd26ac (patch) | |
tree | 6e6ebeeab651535c0810ce6eac08e7ff593b4234 /tests/run | |
parent | 18d5913821064fffa0c74524ba1a8ead9a7def31 (diff) | |
parent | 50e40fffa866e5b41c5df93b3635165ab20e04b1 (diff) | |
download | dotty-75bea8dccce2bc3c0e8298ee71061c9871fd26ac.tar.gz dotty-75bea8dccce2bc3c0e8298ee71061c9871fd26ac.tar.bz2 dotty-75bea8dccce2bc3c0e8298ee71061c9871fd26ac.zip |
Merge pull request #1936 from dotty-staging/fix-1916-on-implicit-functions
Fix #1916: fix erasure of implicit xxl closures
Diffstat (limited to 'tests/run')
-rw-r--r-- | tests/run/implicitFunctionXXL.check | 1 | ||||
-rw-r--r-- | tests/run/implicitFunctionXXL.scala | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/tests/run/implicitFunctionXXL.check b/tests/run/implicitFunctionXXL.check new file mode 100644 index 000000000..87ff213a5 --- /dev/null +++ b/tests/run/implicitFunctionXXL.check @@ -0,0 +1 @@ +Hello 42 diff --git a/tests/run/implicitFunctionXXL.scala b/tests/run/implicitFunctionXXL.scala new file mode 100644 index 000000000..9d1d4ff37 --- /dev/null +++ b/tests/run/implicitFunctionXXL.scala @@ -0,0 +1,38 @@ +object Test { + + def main(args: Array[String]): Unit = { + + implicit val intWorld: Int = 42 + implicit val strWorld: String = "Hello " + + val i1 = (implicit (x1: Int, + x2: String, + 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) => x2 + x1) + + println(i1) + } + +} |