mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +00:00
27 lines
380 B
Java
27 lines
380 B
Java
package a;
|
|
|
|
class ExtensionMethodNames {
|
|
|
|
public void instanceCalls() {
|
|
a.Extensions.ext((new Test()));
|
|
Test t = new Test();
|
|
a.Extensions.ext(t);
|
|
Test Test = new Test();
|
|
a.Extensions.ext(Test);
|
|
}
|
|
|
|
public void staticCalls() {
|
|
Test.ext();
|
|
a.Test.ext();
|
|
}
|
|
}
|
|
|
|
class Extensions {
|
|
public static void ext(Test t) {
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static void ext() {
|
|
}
|
|
} |