mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
#IDEA-265154 fixed Merge-request: IJ-MR-158642 Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com> GitOrigin-RevId: 7a04d4830e1f76ee3ad965390f28168834dca9e9
16 lines
377 B
Java
16 lines
377 B
Java
// "Convert to record class" "true-preview"
|
|
class Foo {
|
|
static final double staticVar = 1.0;
|
|
|
|
void test() {
|
|
|
|
record Point(double x, double y) {
|
|
|
|
Point shiftX() {
|
|
double myLocalVar = staticVar;
|
|
return new Point(x, y + myLocalVar); // using a local variable but not of the local class' enclosing method
|
|
}
|
|
}
|
|
}
|
|
}
|