diff options
author | Liana Husikyan <liana@ethdev.com> | 2015-04-23 00:53:58 +0800 |
---|---|---|
committer | Liana Husikyan <liana@ethdev.com> | 2015-04-27 19:08:32 +0800 |
commit | 88536f90e8403239380c280176250390bab2cd8d (patch) | |
tree | 7ca4aa77cf9e039c02265ebdaa3d6650680931c8 /AST.cpp | |
parent | 648ce852561a1a28bebf3be1a64480aee560bf7a (diff) | |
download | dexon-solidity-88536f90e8403239380c280176250390bab2cd8d.tar.gz dexon-solidity-88536f90e8403239380c280176250390bab2cd8d.tar.zst dexon-solidity-88536f90e8403239380c280176250390bab2cd8d.zip |
changed the test so constructor will have input parameters
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -817,8 +817,11 @@ void NewExpression::checkTypeRequirements(TypePointers const*) BOOST_THROW_EXCEPTION(createTypeError("Trying to create an instance of an abstract contract.")); shared_ptr<ContractType const> contractType = make_shared<ContractType>(*m_contract); TypePointers const& parameterTypes = contractType->getConstructorType()->getParameterTypes(); - m_type = make_shared<FunctionType>(parameterTypes, TypePointers{contractType}, - FunctionType::Location::Creation); + m_type = make_shared<FunctionType>( + parameterTypes, + TypePointers{contractType}, + strings(), + FunctionType::Location::Creation); } void MemberAccess::checkTypeRequirements(TypePointers const* _argumentTypes) |