mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
343 B
Solidity
13 lines
343 B
Solidity
|
library L {
|
||
|
function f(uint256) external {}
|
||
|
function g(uint256[] storage) external {}
|
||
|
function h(uint256[] memory) public {}
|
||
|
}
|
||
|
contract C {
|
||
|
function f() public pure returns (bytes4 a, bytes4 b, bytes4 c, bytes4 d) {
|
||
|
a = L.f.selector;
|
||
|
b = L.g.selector;
|
||
|
c = L.h.selector;
|
||
|
d = L.h.selector;
|
||
|
}
|
||
|
}
|