mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style fixes
This commit is contained in:
parent
47e42430f2
commit
d570ab44c8
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user