solidity/test/libsolidity/semanticTests/libraries/internal_library_function_bound_to_array_named_pop_push.sol

20 lines
312 B
Solidity

library L {
function pop(uint[2] memory a) internal {}
function push(uint[2] memory a) internal {}
}
contract C {
using L for uint[2];
function test() public {
uint[2] memory input;
input.push();
input.pop();
}
}
// ====
// compileViaYul: also
// ----
// test() ->