mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Added support for selector when expression's value is known at compile time
This commit is contained in:
@@ -1145,6 +1145,16 @@ bool SMTEncoder::visit(MemberAccess const& _memberAccess)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
else if (
|
||||
auto const* functionType = dynamic_cast<FunctionType const*>(exprType);
|
||||
functionType &&
|
||||
_memberAccess.memberName() == "selector" &&
|
||||
functionType->hasDeclaration()
|
||||
)
|
||||
{
|
||||
defineExpr(_memberAccess, functionType->externalIdentifier());
|
||||
return false;
|
||||
}
|
||||
else
|
||||
m_errorReporter.warning(
|
||||
7650_error,
|
||||
|
||||
Reference in New Issue
Block a user