diff options
author | LianaHus <liana@ethdev.com> | 2015-09-11 19:39:25 +0800 |
---|---|---|
committer | LianaHus <liana@ethdev.com> | 2015-09-11 20:31:00 +0800 |
commit | d570ab44c893972dfc4541d4970ec9a172e28096 (patch) | |
tree | de60e06e0e86aaf0b297141853988feecaa79af2 | |
parent | 47e42430f27c579e09157f3373238e3bbe8ab93e (diff) | |
download | dexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.tar.gz dexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.tar.zst dexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.zip |
style fixes
-rw-r--r-- | libsolidity/AST.h | 2 | ||||
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/AST.h b/libsolidity/AST.h index 1288b5d3..48790e6a 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -1273,7 +1273,7 @@ public: /// argument types in a call context. void overloadResolution(TypePointers const& _argumentTypes); - ContractDefinition const* contractScope() { return m_contractScope; } + ContractDefinition const* contractScope() const { return m_contractScope; } private: ASTPointer<ASTString> m_name; diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 2b343db3..883d7807 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -2200,7 +2200,7 @@ BOOST_AUTO_TEST_CASE(creating_contract_within_the_contract) char const* sourceCode = R"( contract Test { function f() { var x = new Test(); } - } + } )"; BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode), TypeError); |