mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 17:45:48 +07:00
#IDEA-265154 fixed Merge-request: IJ-MR-158642 Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com> GitOrigin-RevId: 7a04d4830e1f76ee3ad965390f28168834dca9e9
16 lines
321 B
Java
16 lines
321 B
Java
// "Convert to record class" "true-preview"
|
|
class Foo {
|
|
void test() {
|
|
record Point(double x, double y) {
|
|
|
|
Point shiftX() {
|
|
return new Point(x + 1, y);
|
|
}
|
|
|
|
double nestedWithParameter(int myParameter) {
|
|
return 42 + myParameter + x;
|
|
}
|
|
}
|
|
}
|
|
}
|