solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/485_function_types_selector_2.sol

10 lines
269 B
Solidity

contract C {
function g() pure internal {
}
function f() public view returns (bytes4) {
return g.selector;
}
}
// ----
// TypeError 9582: (115-125): Member "selector" not found or not visible after argument-dependent lookup in function () pure.