diff options
author | James Iry <james.iry@typesafe.com> | 2013-08-28 20:51:31 -0700 |
---|---|---|
committer | James Iry <james.iry@typesafe.com> | 2013-11-06 15:25:55 -0800 |
commit | 8d4a5bab2666c7006f31645b59cf063f07a8a12d (patch) | |
tree | 368194b114a0ee815fce5b8c62a0a7711dd79afb /test/files/run/delambdafy_t6555.scala | |
parent | 13ea5909ea25e4bad184e9e4581d94230dc11d9f (diff) | |
download | scala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.tar.gz scala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.tar.bz2 scala-8d4a5bab2666c7006f31645b59cf063f07a8a12d.zip |
Create test variants where delambdafication alters signatures.
This commit includes several tests where there's a variation in
signatures between inline delambdafication and method based
delambdafication.
Diffstat (limited to 'test/files/run/delambdafy_t6555.scala')
-rw-r--r-- | test/files/run/delambdafy_t6555.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/delambdafy_t6555.scala b/test/files/run/delambdafy_t6555.scala new file mode 100644 index 0000000000..a1dcfe790c --- /dev/null +++ b/test/files/run/delambdafy_t6555.scala @@ -0,0 +1,15 @@ +import scala.tools.partest._ +import java.io.{Console => _, _} + +object Test extends DirectTest { + + override def extraSettings: String = "-usejavacp -Xprint:specialize -Ydelambdafy:method -d " + testOutput.path + + override def code = "class Foo { val f = (param: Int) => param } " + + override def show(): Unit = { + Console.withErr(System.out) { + compile() + } + } +} |