mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 14:00:54 +07:00
#IDEA-265154 fixed Merge-request: IJ-MR-158642 Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com> GitOrigin-RevId: 7a04d4830e1f76ee3ad965390f28168834dca9e9
14 lines
285 B
Java
14 lines
285 B
Java
// "Convert to record class" "true-preview"
|
|
class Foo {
|
|
static double delta = 1;
|
|
|
|
void test() {
|
|
record Point(double x, double y) {
|
|
|
|
Point shiftX() {
|
|
return new Point(x + delta, y); // using a variable "delta" which is static
|
|
}
|
|
}
|
|
}
|
|
}
|