mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +07:00
inference: check intersection type for raw conversion separately (IDEA-196523)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
class Main {
|
||||
|
||||
public interface Entity<T> {
|
||||
}
|
||||
|
||||
public interface HasOrder {
|
||||
|
||||
}
|
||||
|
||||
public static <T extends Entity<K> & HasOrder, K> void beforeRemove(T item) {
|
||||
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Object o = null;
|
||||
beforeRemove( (Entity & HasOrder) o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user