solidity/test/libsolidity/syntaxTests/unchecked/unchecked_vardecl.sol

9 lines
187 B
Solidity
Raw Normal View History

2020-09-30 22:13:03 +00:00
contract C {
uint x = unchecked { f() + 2 }
function f() public pure returns (uint) {
return 4;
}
}
// ----
// ParserError 6933: (26-35): Expected primary expression.