// Three errors, in a constant, an action and a function, which `spock check` reports together.
const N: Int = true;
struct State {
x: Int,
}
impl State {
action init() -> State {
State { x: 0 }
}
action next(self) -> State {
self with { x = self.y }
}
fn small(self) -> Bool {
self.x
}
}
model m {
init = State::init;
next = State::next;
invariants = [State::small];
}