Skip to content

Commit d58ebd8

Browse files
authored
Merge pull request #5350 from smowton/smowton/feature/complete-lambda-support
Complete Java lambda support [TG-11760]
2 parents c09e970 + af9104f commit d58ebd8

File tree

64 files changed

+911
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+911
-279
lines changed
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
interface ChildInterface extends ParentInterface {}
Binary file not shown.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
interface ParentInterface {
2+
public int f(int x);
3+
}
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
public class Test {
2+
3+
public static void main() {
4+
5+
ChildInterface inheritedInterface = x -> x + 1;
6+
assert inheritedInterface.f(1) == 2;
7+
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
Test
3+
--function Test.main
4+
^VERIFICATION SUCCESSFUL$
5+
line 6 assertion at file Test\.java line 6 function java::Test\.main:\(\)V bytecode-index 12: SUCCESS
6+
^EXIT=0$
7+
^SIGNAL=0$
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
interface InterfaceDeclaringEquals {
2+
3+
public int f(int x);
4+
5+
public boolean equals(Object other);
6+
}
Binary file not shown.

0 commit comments

Comments
 (0)