aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ExtensionMethodNames.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/ExtensionMethodNames.java')
-rw-r--r--test/transform/resource/before/ExtensionMethodNames.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/transform/resource/before/ExtensionMethodNames.java b/test/transform/resource/before/ExtensionMethodNames.java
new file mode 100644
index 00000000..4ca63a63
--- /dev/null
+++ b/test/transform/resource/before/ExtensionMethodNames.java
@@ -0,0 +1,33 @@
+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() {
+
+ }
+} \ No newline at end of file