aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-11 19:39:25 +0800
committerLianaHus <liana@ethdev.com>2015-09-11 20:31:00 +0800
commitd570ab44c893972dfc4541d4970ec9a172e28096 (patch)
treede60e06e0e86aaf0b297141853988feecaa79af2
parent47e42430f27c579e09157f3373238e3bbe8ab93e (diff)
downloaddexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.tar.gz
dexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.tar.zst
dexon-solidity-d570ab44c893972dfc4541d4970ec9a172e28096.zip
style fixes
-rw-r--r--libsolidity/AST.h2
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp2
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);