mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
312 B
Solidity
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() ->
|