aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/ViewPureChecker.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-20 21:54:41 +0800
committerchriseth <chris@ethereum.org>2018-03-05 22:50:27 +0800
commitfd60c1cf86e69931fda47bdd187f444550ca785f (patch)
tree793510c7aab2330b34940dab009403f897ab1413 /test/libsolidity/ViewPureChecker.cpp
parentcd6ffbdf790e4d3e4da2e7f3fba5524a2b8c3e1d (diff)
downloaddexon-solidity-fd60c1cf86e69931fda47bdd187f444550ca785f.tar.gz
dexon-solidity-fd60c1cf86e69931fda47bdd187f444550ca785f.tar.zst
dexon-solidity-fd60c1cf86e69931fda47bdd187f444550ca785f.zip
Warn if using address overloads on contracts
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r--test/libsolidity/ViewPureChecker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp
index e6a5cfd0..6e8620f9 100644
--- a/test/libsolidity/ViewPureChecker.cpp
+++ b/test/libsolidity/ViewPureChecker.cpp
@@ -279,11 +279,11 @@ BOOST_AUTO_TEST_CASE(builtin_functions)
string text = R"(
contract C {
function f() public {
- this.transfer(1);
- require(this.send(2));
- selfdestruct(this);
- require(this.delegatecall());
- require(this.call());
+ address(this).transfer(1);
+ require(address(this).send(2));
+ selfdestruct(address(this));
+ require(address(this).delegatecall());
+ require(address(this).call());
}
function g() pure public {
bytes32 x = keccak256("abc");