solidity/test/libsolidity/semanticTests/array/inline_array_index_access_ints.sol
2020-07-20 17:17:19 +02:00

11 lines
151 B
Solidity

contract C {
function f() public returns (uint256) {
return ([1, 2, 3, 4][2]);
}
}
// ====
// compileViaYul: also
// ----
// f() -> 3