diff options
author | chriseth <c@ethdev.com> | 2015-05-18 17:34:16 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-05-18 17:34:16 +0800 |
commit | 840d06fe14acb3fbc6d5684b43cb72bcd09cab3b (patch) | |
tree | 3340b730f767f9d6a784d1f0fb9d9c6e79ef81fd /AST.cpp | |
parent | 33e708605881614acefaae2c324732299d7f61fb (diff) | |
download | dexon-solidity-840d06fe14acb3fbc6d5684b43cb72bcd09cab3b.tar.gz dexon-solidity-840d06fe14acb3fbc6d5684b43cb72bcd09cab3b.tar.zst dexon-solidity-840d06fe14acb3fbc6d5684b43cb72bcd09cab3b.zip |
Fixed error message about explicit type conversion.
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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())) |