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

9 lines
199 B
Solidity

contract C {
uint x = unchecked { f() + 2 }
function f() public pure returns (uint) {
return 4;
}
}
// ----
// ParserError 6933: (26-35='unchecked'): Expected primary expression.