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
@@ -3,5 +3,5 @@ class Neg06 {
static class CSuperFoo<X> {}
static class CFoo<X extends Number> extends CSuperFoo<X> {}
CSuperFoo<String> csf1 = new CFoo<<error descr="Type parameter 'java.lang.String' is not within its bound; should extend 'java.lang.Number'"></error>>();
<error descr="Incompatible types. Found: 'Neg06.CFoo<java.lang.String>', required: 'Neg06.CSuperFoo<java.lang.String>'">CSuperFoo<String> csf1 = new CFoo<>();</error>
}