mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Re-added some changes lost in merges.
This commit is contained in:
@@ -347,7 +347,7 @@ void ExpressionStatement::checkTypeRequirements()
|
||||
void Expression::expectType(Type const& _expectedType)
|
||||
{
|
||||
checkTypeRequirements();
|
||||
const Type& type = *getType();
|
||||
Type const& type = *getType();
|
||||
if (!type.isImplicitlyConvertibleTo(_expectedType))
|
||||
BOOST_THROW_EXCEPTION(createTypeError("Type " + type.toString() +
|
||||
" not implicitly convertible to expected type "
|
||||
|
||||
Reference in New Issue
Block a user