mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
20 lines
378 B
Solidity
20 lines
378 B
Solidity
|
contract A{
|
||
|
function f() public pure{
|
||
|
|
||
|
}
|
||
|
}
|
||
|
contract B{
|
||
|
A public a;
|
||
|
}
|
||
|
contract C{
|
||
|
B public b;
|
||
|
}
|
||
|
contract D{
|
||
|
C c;
|
||
|
function f() public view{
|
||
|
c.b.a.f();
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (170-175): Member "a" not found or not visible after argument-dependent lookup in function () view external returns (contract B). Did you intend to call the function?
|