style fixes

This commit is contained in:
LianaHus 2015-09-11 13:39:25 +02:00
parent 47e42430f2
commit d570ab44c8
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);