diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-04-02 23:12:15 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-04-17 21:27:31 +0800 |
commit | 0c296cd8093af05507426f9a5a5b25bb2b51f4fb (patch) | |
tree | 9836ef0c4f576fd1b5d173bb9afef2ea788c3084 /AST.cpp | |
parent | 52a442a100ef065ec36cc9e20f62f6d878347e6d (diff) | |
download | dexon-solidity-0c296cd8093af05507426f9a5a5b25bb2b51f4fb.tar.gz dexon-solidity-0c296cd8093af05507426f9a5a5b25bb2b51f4fb.tar.zst dexon-solidity-0c296cd8093af05507426f9a5a5b25bb2b51f4fb.zip |
Fixing new abstract contract error location reporting
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -728,7 +728,7 @@ void NewExpression::checkTypeRequirements() if (!m_contract) BOOST_THROW_EXCEPTION(createTypeError("Identifier is not a contract.")); if (!m_contract->isFullyImplemented()) - BOOST_THROW_EXCEPTION(m_contract->createTypeError("Trying to create an instance of an abstract contract.")); + 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}, |