mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
create from usage: don't ignore types if no expected methods detected
IDEA-193066 check expected type as well by another expression
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Create local variable 'a'" "true"
|
||||
class C {
|
||||
void foo(Foo f) {
|
||||
Foo a = f;
|
||||
if (a != null && a.foo()) {}
|
||||
}
|
||||
}
|
||||
class Foo {}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create local variable 'a'" "true"
|
||||
class C {
|
||||
void foo(Foo f) {
|
||||
<caret>a = f;
|
||||
if (a != null && a.foo()) {}
|
||||
}
|
||||
}
|
||||
class Foo {}
|
||||
Reference in New Issue
Block a user