From 10a061d425857c9e7bf4fa9aba9923b90467e24e Mon Sep 17 00:00:00 2001 From: James Iry Date: Mon, 22 Jul 2013 17:45:36 -0700 Subject: Adds a setting to delay delambdafication. If set then uncurry lifts the body of a lambda into a local def. Tests are included to show the different tree shapes. --- test/files/run/delambdafy_uncurry_method.check | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/files/run/delambdafy_uncurry_method.check (limited to 'test/files/run/delambdafy_uncurry_method.check') diff --git a/test/files/run/delambdafy_uncurry_method.check b/test/files/run/delambdafy_uncurry_method.check new file mode 100644 index 0000000000..5ee3d174b3 --- /dev/null +++ b/test/files/run/delambdafy_uncurry_method.check @@ -0,0 +1,17 @@ +[[syntax trees at end of uncurry]] // newSource1.scala +package { + class Foo extends Object { + def (): Foo = { + Foo.super.(); + () + }; + def bar(): Unit = { + val f: Int => Int = { + final def $anonfun(x: Int): Int = x.+(1); + ((x: Int) => $anonfun(x)) + }; + () + } + } +} + -- cgit v1.2.3