eliminate wildcards elimination in flattening intersection types (IDEA-143194); fully follow specification in determining target type - javac would be fixed (JDK-8142876), eclipse already obeys the spec

This commit is contained in:
Anna Kozlova
2015-11-12 20:14:15 +01:00
parent 44f26da2bc
commit 03d4334430
5 changed files with 44 additions and 25 deletions
@@ -0,0 +1,13 @@
import java.util.Map;
class Main {
public static <T extends Map<? extends String, ? extends String>> T test() {
return null;
}
public static void main(String[] args) {
Map<String, String> m = Main.test();
}
}