mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fixed error message about explicit type conversion.
This commit is contained in:
parent
33e7086058
commit
840d06fe14
2
AST.cpp
2
AST.cpp
@ -746,7 +746,7 @@ void FunctionCall::checkTypeRequirements(TypePointers const*)
|
||||
//@todo for structs, we have to check the number of arguments to be equal to the
|
||||
// number of non-mapping members
|
||||
if (m_arguments.size() != 1)
|
||||
BOOST_THROW_EXCEPTION(createTypeError("More than one argument for explicit type conversion."));
|
||||
BOOST_THROW_EXCEPTION(createTypeError("Exactly one argument expected for explicit type conversion."));
|
||||
if (!isPositionalCall)
|
||||
BOOST_THROW_EXCEPTION(createTypeError("Type conversion cannot allow named arguments."));
|
||||
if (!m_arguments.front()->getType()->isExplicitlyConvertibleTo(*type.getActualType()))
|
||||
|
Loading…
Reference in New Issue
Block a user