Always generate code for .selector member access.

This commit is contained in:
Daniel Kirchner
2023-07-18 18:15:32 +02:00
committed by Kamil Śliwak
parent 64427412c4
commit 5c7214cbe3
3 changed files with 20 additions and 0 deletions
@@ -0,0 +1,13 @@
contract C {
uint x;
function f() public returns (uint256) {
h().f.selector;
return x;
}
function h() public returns (C) {
x = 42;
return this;
}
}
// ----
// f() -> 42