aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-16 17:05:05 +0800
committerGitHub <noreply@github.com>2018-04-16 17:05:05 +0800
commitd8030c9b2ad0965d7de2637982005da9f4b6b93a (patch)
treeba5b88844c5b598b1c59362b4bad302b747ce390 /libsolidity/analysis
parent73ca3e8a1eaf929dac60ce0a154975fa46b2040e (diff)
parent05c5ab19fb67849d806d8de1b9c3a2982d37f721 (diff)
downloaddexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.gz
dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.tar.zst
dexon-solidity-d8030c9b2ad0965d7de2637982005da9f4b6b93a.zip
Merge pull request #3880 from ethereum/addressMemberDocAndWarn
Improve documentation and warning about accessing contract members in…
Diffstat (limited to 'libsolidity/analysis')
-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."
);
}