solidity/test/libsolidity/syntaxTests/unchecked/unchecked_for_header.sol
2022-04-01 23:41:18 -05:00

10 lines
196 B
Solidity

contract C {
function f() public pure {
for (unchecked { uint x = 2 }; x < 2; x ++) {
}
}
}
// ----
// ParserError 6933: (57-66='unchecked'): Expected primary expression.