blob: 4fc25cd2274733a8256e8c9ee59420142c9f8202 [file] [log] [blame]
public class WildcardSuper {
interface Consumer<T> {
void consume(T object);
}
Consumer<String> testCast(Consumer<Object> consumer) {
return cast(consumer);
}
private static <T> Consumer<T> cast(final Consumer<? super T> consumer) {
throw new RuntimeException();
}
}