mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Control flow side effects on non-disambiguated source.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
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
|
||||
Reference in New Issue
Block a user