diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-06-02 14:49:09 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-06-02 14:49:09 +0200 |
commit | 367c9d36622dd0a37304efd042374c20944d75bd (patch) | |
tree | ab9d04ac9af6189807a76818af83cccec997a77a | |
parent | 4afa3ffe68f450c1f47018892489a0f2a9b4b9b5 (diff) | |
download | dotty-367c9d36622dd0a37304efd042374c20944d75bd.tar.gz dotty-367c9d36622dd0a37304efd042374c20944d75bd.tar.bz2 dotty-367c9d36622dd0a37304efd042374c20944d75bd.zip |
Move test from lambdaLift.scala to a separate file in pending.
-rw-r--r-- | tests/pending/pos/lambdalift-1.scala | 20 | ||||
-rw-r--r-- | tests/pos/lambdalift.scala | 21 |
2 files changed, 20 insertions, 21 deletions
diff --git a/tests/pending/pos/lambdalift-1.scala b/tests/pending/pos/lambdalift-1.scala new file mode 100644 index 000000000..269f839d6 --- /dev/null +++ b/tests/pending/pos/lambdalift-1.scala @@ -0,0 +1,20 @@ +class Super(x: Int) + +class Sub extends Super({ + def foo3(x: Int) = { + + class C { + def this(name: String) = this() + + def bam(y: Int): String => Int = { + def baz = x + y + z => baz * z.length + } + } + + val fun = new C("dummy").bam(1) + fun("abc") + + } + foo3(22) +}) diff --git a/tests/pos/lambdalift.scala b/tests/pos/lambdalift.scala index febae6828..33cc2c069 100644 --- a/tests/pos/lambdalift.scala +++ b/tests/pos/lambdalift.scala @@ -23,24 +23,3 @@ object test { } } - -class Super(x: Int) - -class Sub extends Super({ - def foo3(x: Int) = { - - class C { - def this(name: String) = this() - - def bam(y: Int): String => Int = { - def baz = x + y - z => baz * z.length - } - } - - val fun = new C("dummy").bam(1) - fun("abc") - - } - foo3(22) -}) |