We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4afa3ff commit 367c9d3Copy full SHA for 367c9d3
tests/pending/pos/lambdalift-1.scala
@@ -0,0 +1,20 @@
1
+class Super(x: Int)
2
+
3
+class Sub extends Super({
4
+ def foo3(x: Int) = {
5
6
+ class C {
7
+ def this(name: String) = this()
8
9
+ def bam(y: Int): String => Int = {
10
+ def baz = x + y
11
+ z => baz * z.length
12
+ }
13
14
15
+ val fun = new C("dummy").bam(1)
16
+ fun("abc")
17
18
19
+ foo3(22)
20
+})
tests/pos/lambdalift.scala
@@ -23,24 +23,3 @@ object test {
23
24
}
25
26
-
27
-class Super(x: Int)
28
29
-class Sub extends Super({
30
- def foo3(x: Int) = {
31
32
- class C {
33
- def this(name: String) = this()
34
35
- def bam(y: Int): String => Int = {
36
- def baz = x + y
37
- z => baz * z.length
38
- }
39
40
41
- val fun = new C("dummy").bam(1)
42
- fun("abc")
43
44
45
- foo3(22)
46
-})
0 commit comments