do not infer from parent when inference from bound result in a raw type (IDEA-107782)

This commit is contained in:
Anna Kozlova
2013-05-28 18:50:18 +04:00
parent 9661f35dbd
commit cc88360208
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,15 @@
public class Test {
{
final <error descr="Incompatible types. Found: 'java.lang.Object', required: 'MyResult'">MyResult hello = parseXML(new Parser());</error>
}
public <R, P extends AbstractParser & Result<R>> R parseXML(P parser) {
R result = null;
return result;
}
}
class MyResult {}
class AbstractParser {}
interface Result<T> {}
class Parser extends AbstractParser implements Result {}