diff options
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r-- | test/transform/resource/before/ExtensionMethodNonStatic.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/ExtensionMethodNonStatic.java b/test/transform/resource/before/ExtensionMethodNonStatic.java new file mode 100644 index 00000000..9ccaaedd --- /dev/null +++ b/test/transform/resource/before/ExtensionMethodNonStatic.java @@ -0,0 +1,15 @@ +import lombok.experimental.ExtensionMethod; + +@ExtensionMethod({ExtensionMethodNonStatic.Extensions.class}) +class ExtensionMethodNonStatic { + public void test() { + String s = "test"; + s.startsWith(""); + } + + static class Extensions { + public boolean startsWith(String s, String prefix) { + return s.startsWith(prefix); + } + } +} |