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

12 lines
228 B
Solidity

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