blob: 817a4c2b479dbfbe36ffd5887d19d02d74a4e7fb [file] [log] [blame]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class Npe {
Object foo(@NotNull Object o) {
return o;
}
@Nullable Object nullable() {
return null;
}
void bar() {
Object o = nullable();
foo(o); // null should not be passed here
}
}