new inference: already resolved vars can't have bounds problems (IDEA-149740)

This commit is contained in:
Anna Kozlova
2015-12-29 16:46:58 +01:00
parent 503fe51b0f
commit 210217ecfa
3 changed files with 22 additions and 0 deletions
@@ -0,0 +1,17 @@
import java.util.Map;
interface RawEntity<T> {}
interface AoContributor extends RawEntity<Integer> {}
class Test {
void foo(Map<String, AoContributor> contributors) {
AoContributor c = contributors.computeIfAbsent("", email -> create(AoContributor.class, of("clmn", email)));
}
static <T extends RawEntity<K>, K> T create(Class<T> c, Map<String, Object> v2) {
return null;
}
static <K1, V1> Map<K1, V1> of(K1 k1, V1 v1) {
return null;
}
}