mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[FIXUP] Extra assertions in the type checker
This commit is contained in:
parent
84c42d4ae2
commit
a5a294053d
@ -3750,6 +3750,9 @@ void TypeChecker::endVisit(Literal const& _literal)
|
||||
else
|
||||
{
|
||||
FunctionType const& functionType = dynamic_cast<FunctionType const&>(*declaration->type());
|
||||
solAssert(!functionType.takesArbitraryParameters());
|
||||
solAssert(functionType.kind() == FunctionType::Kind::Internal);
|
||||
|
||||
auto const* rationalType = dynamic_cast<RationalNumberType const*>(type);
|
||||
|
||||
optional<string> parameterCountMessage;
|
||||
|
Loading…
Reference in New Issue
Block a user