inference: check intersection type for raw conversion separately (IDEA-196523)

This commit is contained in:
Anna.Kozlova
2018-08-01 11:08:49 +02:00
parent 1261d28c87
commit fbb178fb85
3 changed files with 45 additions and 11 deletions

View File

@@ -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);
}
}