old inference: include type parameter's bounds in result as intersection if inference from parent type was started (IDEA-153411)

This commit is contained in:
Anna.Kozlova
2016-03-22 19:22:42 +01:00
parent 58299e854f
commit b1a0d687df
5 changed files with 55 additions and 13 deletions
@@ -4,7 +4,7 @@ import java.util.Map;
class Test {
public static void main(String[] args) {
Map<Integer, Object> map = <error descr="Inferred type 'java.lang.Object' for type parameter 'V' is not within its bound; should implement 'java.lang.Comparable'">make()</error>;
<error descr="Incompatible types. Found: 'java.util.Map<java.lang.Integer,java.lang.Comparable>', required: 'java.util.Map<java.lang.Integer,java.lang.Object>'">Map<Integer, Object> map = make();</error>
}