mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
32 lines
604 B
Solidity
32 lines
604 B
Solidity
contract C {
|
|
struct S { bool f; }
|
|
S s;
|
|
function ext() external { }
|
|
function f() internal
|
|
{
|
|
S storage r;
|
|
try this.ext() { r = s; }
|
|
catch (bytes memory) { r = s; }
|
|
r;
|
|
}
|
|
function g() internal
|
|
{
|
|
S storage r;
|
|
try this.ext() { r = s; }
|
|
catch Error (string memory) { r = s; }
|
|
catch (bytes memory) { r = s; }
|
|
r;
|
|
}
|
|
function h() internal
|
|
{
|
|
S storage r;
|
|
try this.ext() { }
|
|
catch (bytes memory) { }
|
|
r = s;
|
|
r;
|
|
}
|
|
}
|
|
// ====
|
|
// EVMVersion: >=byzantium
|
|
// ----
|