aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-07-19 01:51:24 +0800
committerLeonardo Alt <leo@ethereum.org>2018-07-19 01:51:24 +0800
commitfaa9c221d41c45e12411c654919f318f6e7fc98f (patch)
tree4393a4143da54f183e0459c59b0f3687bc5fbe37 /test/libsolidity
parent25fa1142bc2ba74e75f24f8267d7fcb282423335 (diff)
downloaddexon-solidity-faa9c221d41c45e12411c654919f318f6e7fc98f.tar.gz
dexon-solidity-faa9c221d41c45e12411c654919f318f6e7fc98f.tar.zst
dexon-solidity-faa9c221d41c45e12411c654919f318f6e7fc98f.zip
Changes in ExpressionCompiler
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/syntaxTests/types/address_members_in_contract.sol6
1 files changed, 6 insertions, 0 deletions
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.