|
|
@ -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 " |
|
|
|