forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move test from lambdaLift.scala to a separate file in pending.
- Loading branch information
1 parent
4afa3ff
commit 367c9d3
Showing
2 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters