mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
356 B
Solidity
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 ().
|