solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/575_member_member_getter_call_without_parentheses.sol

20 lines
378 B
Solidity
Raw Normal View History

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?