solidity/test/libsolidity/syntaxTests/types/function_types/selector/local_variable_selector_not_pure.sol

9 lines
267 B
Solidity
Raw Normal View History

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;
}
}