// Test case for Issue 1399. // https://github.com/typetools/checker-framework/issues/1399 public class Issue1399 { static class Box { static Box box(Class type) { return new Box(); } void act(T instance) {} } abstract class Math { abstract Box id(Box in); void foo(Math m) { m.id(Box.box(Long.class)).act(10L); } } }