[fixes #3450] Add support for extension methods on records

This commit is contained in:
Rawi01 committed 2023-08-07 22:19:08 +02:00
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);
}
}
}