inference: process supertypes starting from self to find valid parameterization (IDEA-204125)

This commit is contained in:
Anna.Kozlova
2019-01-22 11:36:28 +01:00
parent 7a1fe1b38d
commit 1f24e30346
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import java.util.*;
class MyTest {
{
consume(new HashSet<ListProperty<?>>());
}
static <_L extends ListProperty<String>> void consume(HashSet<? super _L> a) {}
}
interface ListProperty<A> extends Set<List<A>>{}