mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 08:17:18 +00:00
[fixes #3450] Add support for extension methods on records
This commit is contained in:
1 parent
000ce6d19a
commit
f67b66456a
5 files changed
+60
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// version 14:
|
||||
public record ExtensionMethodOnRecord() {
|
||||
public void test() {
|
||||
ExtensionMethodOnRecord.Extensions.intValue("1");
|
||||
}
|
||||
|
||||
static class Extensions {
|
||||
public static Integer intValue(String s) {
|
||||
return Integer.valueOf(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user