mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
229 B
Solidity
10 lines
229 B
Solidity
|
contract C {
|
||
|
struct S { bool f; }
|
||
|
S s;
|
||
|
function f() internal pure returns (S storage) {
|
||
|
throw;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (108-113): "throw" is deprecated in favour of "revert()", "require()" and "assert()".
|