blob: 8300b6a97c0b7755c6d4d6533a616035c34655cb [file]
import java.util.function.Predicate;
class RedundantCast {
private static void foo(final int matchType) {
Object o = switch (matchType) {
default -> (Predicate<Object>) target -> target == null;
};
}
}