// Test case for issue 953 // https://github.com/typetools/checker-framework/issues/953 import java.util.List; class Issue953 { class MyCollector {} class MyStream { F collect(MyCollector param) { throw new RuntimeException(); } } public static void test(MyStream y) { // Type argument inference fails, so a checker may report a type checking error. @SuppressWarnings("") List counts = y.collect(toList()); } static MyCollector> toList() { throw new RuntimeException(); } }