solidity/test/libsolidity/semanticTests/constants/function_unreferenced.sol

13 lines
304 B
Solidity
Raw Normal View History

contract B {
function g() public {}
}
contract C is B {
bytes4 constant s2 = B.g.selector;
function f() external pure returns (bytes4) { return s2; }
}
// ====
// compileViaYul: also
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// f() -> 0xe2179b8e00000000000000000000000000000000000000000000000000000000