aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-13 23:28:08 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-14 00:26:24 +0800
commit05c5ab19fb67849d806d8de1b9c3a2982d37f721 (patch)
treeb6be93fd681d43120f2593754f88da7e2cf7dbc8 /libsolidity
parent2001cc6bdca87d715380b15f11c797666528e040 (diff)
downloaddexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.gz
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.bz2
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.lz
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.xz
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.tar.zst
dexon-solidity-05c5ab19fb67849d806d8de1b9c3a2982d37f721.zip
Improve documentation and warning about accessing contract members inherited from address.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index f4df4c94..47a551dc 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1988,7 +1988,8 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
m_errorReporter.warning(
_memberAccess.location(),
"Using contract member \"" + memberName +"\" inherited from the address type is deprecated." +
- " Convert the contract to \"address\" type to access the member."
+ " Convert the contract to \"address\" type to access the member,"
+ " for example use \"address(contract)." + memberName + "\" instead."
);
}