mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
java 8 interfaces: default/static preferences (IDEA-136171)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class Test {
|
||||
interface I {
|
||||
default void f() {}
|
||||
}
|
||||
|
||||
interface J {
|
||||
static void f() {}
|
||||
}
|
||||
|
||||
static class IJ implements I, J {}
|
||||
static class JI implements J, I {}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new IJ(). f();
|
||||
new JI(). f();
|
||||
J.f();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user