aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-05-18 17:34:16 +0800
committerchriseth <c@ethdev.com>2015-05-18 17:34:16 +0800
commit840d06fe14acb3fbc6d5684b43cb72bcd09cab3b (patch)
tree3340b730f767f9d6a784d1f0fb9d9c6e79ef81fd /AST.cpp
parent33e708605881614acefaae2c324732299d7f61fb (diff)
downloaddexon-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST.cpp b/AST.cpp
index 2f98ce4f..9842901e 100644
--- a/AST.cpp
+++ b/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()))