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

9 lines
169 B
Solidity

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