mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
163 B
Solidity
9 lines
163 B
Solidity
|
contract C {
|
||
|
function f() public {
|
||
|
if (true)
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// SyntaxError: (69-74): "break" has to be in a "for" or "while" loop.
|