[Sol->Yul] Adding unimplemented assert for fixed point type shifting.

This commit is contained in:
Djordje Mijovic 2021-02-08 13:13:19 +01:00
parent a39aae8604
commit 97e9829988

View File

@ -387,6 +387,7 @@ string YulUtilFunctions::shiftRightSignedFunctionDynamic()
string YulUtilFunctions::typedShiftLeftFunction(Type const& _type, Type const& _amountType) string YulUtilFunctions::typedShiftLeftFunction(Type const& _type, Type const& _amountType)
{ {
solUnimplementedAssert(_type.category() != Type::Category::FixedPoint, "Not yet implemented - FixedPointType.");
solAssert(_type.category() == Type::Category::FixedBytes || _type.category() == Type::Category::Integer, ""); solAssert(_type.category() == Type::Category::FixedBytes || _type.category() == Type::Category::Integer, "");
solAssert(_amountType.category() == Type::Category::Integer, ""); solAssert(_amountType.category() == Type::Category::Integer, "");
solAssert(!dynamic_cast<IntegerType const&>(_amountType).isSigned(), ""); solAssert(!dynamic_cast<IntegerType const&>(_amountType).isSigned(), "");