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
commit 0e11d468cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))