mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
267 B
Solidity
13 lines
267 B
Solidity
|
contract C {
|
||
|
string s = "doh";
|
||
|
|
||
|
function f() public returns (string memory, string memory) {
|
||
|
string memory t = "ray";
|
||
|
string[3] memory x = [s, t, "mi"];
|
||
|
return (x[1], x[2]);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// ----
|
||
|
// f() -> 0x40, 0x80, 0x3, "ray", 0x2, "mi"
|