mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Always generate code for .selector member access.
This commit is contained in:
committed by
Kamil Śliwak
parent
64427412c4
commit
5c7214cbe3
@@ -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
|
||||
Reference in New Issue
Block a user