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:
Anna Kozlova
2018-06-01 20:04:05 +03:00
parent ce8366714f
commit 31fd8cfe08
4 changed files with 38 additions and 18 deletions
@@ -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 {}
@@ -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 {}