Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createLocalFromUsage/afterNothingFoundByExpectedMethod.java
Anna Kozlova 31fd8cfe08 create from usage: don't ignore types if no expected methods detected
IDEA-193066 check expected type as well by another expression
2018-06-01 20:04:05 +03:00

8 lines
139 B
Java

// "Create local variable 'a'" "true"
class C {
void foo(Foo f) {
Foo a = f;
if (a != null && a.foo()) {}
}
}
class Foo {}