blob: 25a90dd1afff6e05ac9b91df15c27ffaee956174 [file] [log] [blame]
import org.checkerframework.checker.index.qual.NonNegative;
import org.checkerframework.checker.index.qual.Positive;
public class SimpleTransferAdd {
void test() {
int bs = -1;
// :: error: (assignment)
@NonNegative int es = bs;
// @NonNegative int ds = 2 + bs;
int ds = 0;
// :: error: (assignment)
@Positive int cs = ds++;
@Positive int fs = ds;
}
}
// a comment