Skip to content

Commit 89eeef0

Browse files
committed
Add private lambda test
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
1 parent ee69630 commit 89eeef0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#output: 99 bottles of beer on the wall!
2+
3+
public class Foo {
4+
foo(): void {
5+
lambda(() => bar());
6+
}
7+
8+
private bar(): void {
9+
println("99 bottles of beer on the wall!");
10+
}
11+
12+
private lambda(block: function() as void): void {
13+
block();
14+
}
15+
}
16+
17+
(new Foo()).foo();

0 commit comments

Comments
 (0)