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

12 lines
228 B
Solidity
Raw Normal View History

2020-09-30 22:13:03 +00:00
contract C {
function f() public pure {
unchecked {
unchecked {
uint x = 2 + 3;
}
}
}
}
// ----
// SyntaxError 1941: (76-133): "unchecked" blocks cannot be nested.