mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
353 B
Solidity
11 lines
353 B
Solidity
|
contract C {
|
||
|
struct S { bool f; }
|
||
|
S s;
|
||
|
function f() internal pure {}
|
||
|
function g() internal view returns (S storage) { return s; }
|
||
|
function h() internal view returns (S storage c) { return s; }
|
||
|
function i() internal view returns (S storage c) { c = s; }
|
||
|
function j() internal view returns (S storage c) { (c) = s; }
|
||
|
}
|
||
|
// ----
|