mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
create from usage: ensure that refs for methods/locals are not mixed (IDEA-195066)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Create local variable 'a'" "true"
|
||||
class C {
|
||||
C builder() {
|
||||
return this;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
String a;
|
||||
builder().a(a).intValue();
|
||||
}
|
||||
|
||||
Integer a(String s) {}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// "Create local variable 'a'" "true"
|
||||
class C {
|
||||
C builder() {
|
||||
return this;
|
||||
}
|
||||
|
||||
void foo() {
|
||||
builder().a(<caret>a).intValue();
|
||||
}
|
||||
|
||||
Integer a(String s) {}
|
||||
}
|
||||
Reference in New Issue
Block a user