new inference: check intersection type of upper bound to detect substitution (IDEA-165011)

This commit is contained in:
Anna.Kozlova
2016-12-07 18:44:34 +01:00
parent b5389da657
commit 4290a37a08
3 changed files with 24 additions and 0 deletions
@@ -0,0 +1,10 @@
import java.util.List;
class Test {
<B> void foo(final Enum<? extends List<B>> f) {}
void bar(final Enum<? extends List<String>> e) {
foo(e);
}
}