Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createLocalFromUsage/beforeNothingFoundByExpectedMethod.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
142 B
Java

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