blob: 49946fce85f6d5c6e3ffd993d9023b9b0da6f1a2 [file] [log] [blame]
// Test dataflow refinement in the body of a lambda.
import org.checkerframework.checker.nullness.qual.*;
public class Dataflow {
void context() {
FunctionDF<@Nullable Object, Object> o =
a -> {
// :: error: (dereference.of.nullable)
a.toString();
a = "";
a.toString();
return "";
};
}
}
interface FunctionDF<T extends @Nullable Object, R> {
R apply(T t);
}