test for union types
This commit is contained in:
10
testData/src/pkg/TestUnionType.java
Normal file
10
testData/src/pkg/TestUnionType.java
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user