test for union types

This commit is contained in:
Egor.Ushakov
2017-04-26 20:29:15 +03:00
parent 478e6896e9
commit 195dabf6e6
4 changed files with 39 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,28 @@
package pkg;
import java.io.Serializable;
import java.util.Comparator;
public interface TestUnionType {
static Comparator comparingInt() {
return (Comparator & Serializable)((c1, c2) -> {// 8
return 1;
}));
}
}
class 'pkg/TestUnionType' {
method 'lambda$comparingInt$ff46620a$1 (Ljava/lang/Object;Ljava/lang/Object;)I' {
0 8
1 8
}
method 'comparingInt ()Ljava/util/Comparator;' {
5 7
8 7
b 7
}
}
Lines mapping:
8 <-> 8

View File

@@ -0,0 +1,10 @@
package pkg;
import java.io.Serializable;
import java.util.Comparator;
public interface TestUnionType {
public static Comparator comparingInt() {
return (Comparator & Serializable)(c1, c2) -> 1;
}
}