Provide selector for some internal functions.

This commit is contained in:
chriseth
2021-03-01 16:19:59 +01:00
parent 44493ad428
commit 5e94fce7df
5 changed files with 72 additions and 1 deletions
@@ -0,0 +1,11 @@
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
// ----
// f() -> 0xe2179b8e00000000000000000000000000000000000000000000000000000000