aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-06-02 14:49:09 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-06-02 14:49:09 +0200
commit367c9d36622dd0a37304efd042374c20944d75bd (patch)
treeab9d04ac9af6189807a76818af83cccec997a77a
parent4afa3ffe68f450c1f47018892489a0f2a9b4b9b5 (diff)
downloaddotty-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.scala20
-rw-r--r--tests/pos/lambdalift.scala21
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)
-})