mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
lambda: infer functional interface from enum constants (IDEA-97596)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
enum Bug {
|
||||
INSTANCE1((Integer x, Integer y) -> x.byteValue()),
|
||||
INSTANCE2((x, y) -> y. byteValue());
|
||||
private Bug(Foo foo) {
|
||||
}
|
||||
|
||||
private interface Foo {
|
||||
byte bar(Integer x, Integer y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user