package inference; public class Bug16 { public interface Interface {} private static class Implementation implements Interface { Implementation(Interface delegate, Interface inverse) {} Implementation(Interface inverse, int o) {} Implementation(Interface delegate) {} void test(Interface param) { Interface inverse1 = new Implementation<>(param, this); Interface inverse2 = new Implementation<>(param); Interface inverse3 = new Implementation<>(this, 1); } } }