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

10 lines
264 B
Solidity
Raw Normal View History

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