solidity/test/libsolidity/syntaxTests/types/contractTypeType/members/base_contract_invalid.sol

14 lines
356 B
Solidity

contract B {
function f() external {}
function g() internal {}
}
contract C is B {
function i() public {
B.f();
B.g.selector;
}
}
// ----
// TypeError: (125-130): Cannot call function via contract type name.
// TypeError: (140-152): Member "selector" not found or not visible after argument-dependent lookup in function ().