From faa9c221d41c45e12411c654919f318f6e7fc98f Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Wed, 18 Jul 2018 19:51:24 +0200 Subject: Changes in ExpressionCompiler --- test/libsolidity/syntaxTests/types/address_members_in_contract.sol | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/libsolidity/syntaxTests/types/address_members_in_contract.sol (limited to 'test/libsolidity') diff --git a/test/libsolidity/syntaxTests/types/address_members_in_contract.sol b/test/libsolidity/syntaxTests/types/address_members_in_contract.sol new file mode 100644 index 00000000..eafc8268 --- /dev/null +++ b/test/libsolidity/syntaxTests/types/address_members_in_contract.sol @@ -0,0 +1,6 @@ +contract C { + function f() public returns (C) { return this; } + function g() public returns (uint) { return f().balance(); } +} +// ---- +// TypeError: (114-125): Member "balance" not found or not visible after argument-dependent lookup in contract C. Use "address(...).balance" to access this address member. -- cgit