solidity/test/libsolidity/semanticTests/array/inline_array_storage_to_memory_conversion_strings.sol
2020-03-19 14:42:25 +01:00

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"