mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
type inference: super bounds promotion corrected (IDEA-55718)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
public class ExampleProblem {
|
||||
<T> void asserting(T t, Simple<T> l){
|
||||
}
|
||||
|
||||
<K> Simple<? super K> comp(K k){
|
||||
return null;
|
||||
}
|
||||
|
||||
public void main(String[] args) {
|
||||
asserting(0, comp(0));
|
||||
}
|
||||
}
|
||||
|
||||
class Simple<SST>{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user