inference: check lower bounds assignability to upper bounds

lub may break some capture invariants

GitOrigin-RevId: c7857bf255c357471fd9f14fc161d2ca03769f4b
This commit is contained in:
Anna Kozlova
2019-05-14 11:06:24 +03:00
committed by intellij-monorepo-bot
parent 443a6e8985
commit 78095fd61d
3 changed files with 21 additions and 8 deletions
@@ -0,0 +1,11 @@
class MyTest<T> {
static void m(Ref<? super String> commentRef) {
commentRef = coalesce(commentRef, commentRef);
}
static <T> T coalesce(T t1, T t2) {
return t1;
}
static class Ref<T> { }
}