Merge pull request #9064 from ethereum/FixedPointType-solAssert

Added an assert for FixedPointType in InlineAssembly
This commit is contained in:
chriseth
2020-06-02 16:57:46 +02:00
committed by GitHub
+2
View File
@@ -711,6 +711,8 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly)
}
}
solAssert(!dynamic_cast<FixedPointType const*>(var->type()), "FixedPointType not implemented.");
if (requiresStorage)
{
if (!var->isStateVariable() && !var->type()->dataStoredIn(DataLocation::Storage))