inference: check glb conflicts after flatten in intersection type(IDEA-181017)

This commit is contained in:
Anna.Kozlova
2017-10-25 18:01:56 +02:00
parent c8f8341d2f
commit a2e13fee96
4 changed files with 56 additions and 23 deletions
@@ -11,6 +11,6 @@ abstract class A1{
abstract <T> T baz(List<? super T> a);
void bar(List<?> x){
String o = <error descr="Incompatible upper bounds: Object, capture of ?, String">baz(x);</error>
String o = <error descr="Type parameter T has incompatible upper bounds: capture of ? and String">baz(x);</error>
}
}