2018-05-14 09:06:50 +00:00
|
|
|
contract C {
|
|
|
|
struct S { bool f; }
|
|
|
|
S s;
|
2018-07-12 01:24:50 +00:00
|
|
|
function f() internal view returns (S memory c) {
|
2018-05-14 09:06:50 +00:00
|
|
|
c = s;
|
|
|
|
}
|
2018-07-12 01:24:50 +00:00
|
|
|
function g() internal view returns (S memory) {
|
2018-05-14 09:06:50 +00:00
|
|
|
return s;
|
|
|
|
}
|
2018-07-12 01:24:50 +00:00
|
|
|
function h() internal pure returns (S memory) {
|
2018-05-14 09:06:50 +00:00
|
|
|
}
|
2018-07-12 01:24:50 +00:00
|
|
|
function i(bool flag) internal view returns (S memory c) {
|
2018-05-14 09:06:50 +00:00
|
|
|
if (flag) c = s;
|
|
|
|
}
|
2018-07-12 01:24:50 +00:00
|
|
|
function j(bool flag) internal view returns (S memory) {
|
2018-05-14 09:06:50 +00:00
|
|
|
if (flag) return s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|