mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
bind params to fields: accept field assignments if not exactly the parameter reference was assigned (IDEA-120320)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
// "Assign Parameter to Field 'myId'" "true"
|
||||
|
||||
class Person {
|
||||
int a;
|
||||
int myId;
|
||||
void f(int a, int id) {
|
||||
this.a = foo(a);
|
||||
myId = id;
|
||||
}
|
||||
int foo(int a) {return a;}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Assign Parameter to Field 'myId'" "true"
|
||||
|
||||
class Person {
|
||||
int a;
|
||||
int myId;
|
||||
void f(int a, int id<caret>) {
|
||||
this.a = foo(a);
|
||||
}
|
||||
int foo(int a) {return a;}
|
||||
}
|
||||
Reference in New Issue
Block a user