Debian Codegraph @

framework/tests/all-systems/java8inference/Bug16.java

raw
1 package inference;
2
3 public class Bug16 {
4
5 public interface Interface<K1, V1> {}
6
7 private static class Implementation<K, V> implements Interface<K, V> {
8 Implementation(Interface<? extends K, ? extends V> delegate, Interface<V, K> inverse) {}
9
10 Implementation(Interface<V, K> inverse, int o) {}
11
12 Implementation(Interface<? extends K, ? extends V> delegate) {}
13
14 void test(Interface<V, K> param) {
15 Interface<V, K> inverse1 = new Implementation<>(param, this);
16 Interface<V, K> inverse2 = new Implementation<>(param);
17 Interface<V, K> inverse3 = new Implementation<>(this, 1);
18 }
19 }
20 }