mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
20 lines
332 B
Java
20 lines
332 B
Java
import static In.FOO;
|
|
|
|
// "Replace implements with static import" "true-preview"
|
|
interface In {
|
|
int FOO = 0;
|
|
}
|
|
|
|
class II {
|
|
public static void main(String[] args) {
|
|
System.out.println(FOO);
|
|
}
|
|
}
|
|
|
|
class II1 {
|
|
int FOO = 9;
|
|
public static void main(String[] args) {
|
|
System.out.println(In.FOO);
|
|
}
|
|
}
|