solidity/test/libsolidity/syntaxTests/types/library_function_selector_view_pure.sol

11 lines
226 B
Solidity

library L {
function f(uint256) external pure {}
function g(uint256) external view {}
}
contract C {
function f() public pure returns (bytes4, bytes4) {
return (L.f.selector, L.g.selector);
}
}
// ----