Closed
Description
fn test00_start(ch: _chan[int], message: int, count: int) {
log "Starting test00_start";
let i: int = 0;
while i < count {
log "Sending Message";
send(ch, message);
i = i + 1;
}
log "Ending test00_start";
}
send
uses move-mode for the second argument, which means that message
is deinitialized the second time through the loop. Typestate should catch this.
Metadata
Metadata
Assignees
Labels
No labels