Bug 40557 quick fix: improve return type guessing
3.0 M2 class A { private boolean foo() { return f(1) || f(2); } } quich fix should be able to figure out that i want 'f' to be a boolean method
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/UnresolvedMethodsQuickFixTest.java
for (int k= 0; k < targets.length; k++) {
			for (int n= 0; n < targets.length; n++) {
				VariableDeclarationFragment f1= targets[k];
				VariableDeclarationFragment f2= targets[n];
				String line= f2.getName().getIdentifier() + "= " + f1.getName().getIdentifier();
				
				buf= new StringBuffer();
				buf.append("package test1;\n");
				buf.append("public class F extends E {\n");
				buf.append("    void foo() {\n");
				buf.append("        ").append(line).append(";\n");
				buf.append("    }\n");
				buf.append("}\n");
				char[] content= buf.toString().toCharArray();
				
				astRoot= AST.parseCompilationUnit(content, "F.java", cu1.getJavaProject());
				problems= astRoot.getProblems();
				ITypeBinding b1= f1.resolveBinding().getType();
				assertNotNull(b1);
				ITypeBinding b2= f2.resolveBinding().getType();
				assertNotNull(b2);
				boolean res= TypeRules.canAssign(b1, b2.getQualifiedName());
				assertEquals(line, problems.length == 0, res);
				boolean res2= TypeRules.canAssign(b1, b2);
				assertEquals(line, problems.length == 0, res2);			
			}	
		}
	}
}