aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-04-23 00:53:58 +0800
committerLiana Husikyan <liana@ethdev.com>2015-04-27 19:08:32 +0800
commit88536f90e8403239380c280176250390bab2cd8d (patch)
tree7ca4aa77cf9e039c02265ebdaa3d6650680931c8 /AST.cpp
parent648ce852561a1a28bebf3be1a64480aee560bf7a (diff)
downloaddexon-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.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/AST.cpp b/AST.cpp
index 59a7b61c..83b0adf3 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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)