mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
33 lines
433 B
Java
33 lines
433 B
Java
package a;
|
|
|
|
import lombok.experimental.ExtensionMethod;
|
|
|
|
@ExtensionMethod(Extensions.class)
|
|
class ExtensionMethodNames {
|
|
|
|
public void instanceCalls() {
|
|
(new Test()).ext();
|
|
|
|
Test t = new Test();
|
|
t.ext();
|
|
|
|
Test Test = new Test();
|
|
Test.ext();
|
|
}
|
|
|
|
public void staticCalls() {
|
|
Test.ext();
|
|
a.Test.ext();
|
|
}
|
|
}
|
|
|
|
class Extensions {
|
|
public static void ext(Test t) {
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static void ext() {
|
|
|
|
}
|
|
} |