mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
267 B
Solidity
9 lines
267 B
Solidity
|
contract C {
|
||
|
function f() public pure returns (bytes4) {
|
||
|
function() external g;
|
||
|
// Make sure g.selector is not considered pure:
|
||
|
// If it was considered pure, this would emit a warning "Statement has no effect".
|
||
|
g.selector;
|
||
|
}
|
||
|
}
|