// Test case for Issue 1424. // https://github.com/typetools/checker-framework/issues/1424 @SuppressWarnings("unchecked") abstract class Issue1424 { class Box {} interface Callable { V call() throws Exception; } class MyCallable implements Callable { MyCallable(Callable delegate) {} public T call() throws Exception { throw new RuntimeException(); } } abstract Box submit(Callable t); Box foo() { return submit(new MyCallable(() -> true)); } }