mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
251 B
Solidity
16 lines
251 B
Solidity
contract C {
|
|
string public tester;
|
|
|
|
function f() public returns (string memory) {
|
|
return (["abc", "def", "g"][0]);
|
|
}
|
|
|
|
function test() public {
|
|
tester = f();
|
|
}
|
|
}
|
|
|
|
// ----
|
|
// test() ->
|
|
// tester() -> 0x20, 0x3, "abc"
|