solidity/test/libsolidity/semanticTests/constants/function_unreferenced.sol
2023-05-11 10:56:55 -05:00

10 lines
249 B
Solidity

contract B {
function g() public {}
}
contract C is B {
bytes4 constant s2 = B.g.selector;
function f() external pure returns (bytes4) { return s2; }
}
// ----
// f() -> 0xe2179b8e00000000000000000000000000000000000000000000000000000000