solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/280_continue_not_in_loop.sol

9 lines
174 B
Solidity

contract C {
function f() public {
if (true)
continue;
}
}
// ----
// SyntaxError 4123: (69-77): "continue" has to be in a "for" or "while" loop.