// Test case for Issue 2199. @SuppressWarnings("unchecked") class Issue2199 { static class StrangeConstructorTypeArgs { public StrangeConstructorTypeArgs(Abstract abs) {} } abstract static class Abstract {} static class Concrete extends Abstract {} static StrangeConstructorTypeArgs getStrangeConstructorTypeArgs() { return new StrangeConstructorTypeArgs(new Concrete<>()); } }