solidity/test/libsolidity/syntaxTests/unchecked/unchecked_vardecl.sol
2020-10-19 16:58:59 +02:00

9 lines
187 B
Solidity

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