Skip to content

Commit 1ee70bd

Browse files
committed
Add tests for the newly supported kinds of lambda
1 parent 7195614 commit 1ee70bd

File tree

22 files changed

+89
-0
lines changed

22 files changed

+89
-0
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+
}
1.21 KB
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$
Binary file not shown.
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)