mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
inference: check lower bounds assignability to upper bounds
lub may break some capture invariants GitOrigin-RevId: c7857bf255c357471fd9f14fc161d2ca03769f4b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
443a6e8985
commit
78095fd61d
+11
@@ -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> { }
|
||||
}
|
||||
Reference in New Issue
Block a user