mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
312 B
Plaintext
20 lines
312 B
Plaintext
|
{
|
||
|
function a() {
|
||
|
{
|
||
|
function b() { if calldataloda(0) { return(0, 0) } }
|
||
|
b()
|
||
|
}
|
||
|
{
|
||
|
function b() { revert(0, 0) }
|
||
|
b()
|
||
|
}
|
||
|
}
|
||
|
function b() {
|
||
|
leave
|
||
|
revert(0, 0)
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// a: can revert
|
||
|
// b: can continue
|