blob: ecc24b8e86d1fdf43402abcd5416d87b4c6ffd34 [file] [log] [blame]
import org.checkerframework.common.value.qual.IntVal;
public class ManualConstructor {
@IntVal(1) int x;
@IntVal(2) int y;
int z;
// :: error: (contracts.postcondition)
ManualConstructor() {
x = 1;
}
// :: error: (contracts.postcondition)
ManualConstructor(boolean ignore) {
x = 1;
z = 3;
}
ManualConstructor(float ignore) {
x = 1;
y = 2;
}
ManualConstructor(double ignore) {
x = 1;
y = 2;
z = 3;
}
}