[FIXUP] Extra assertions in the type checker

This commit is contained in:
Kamil Śliwak 2022-07-26 12:39:33 +02:00
parent 84c42d4ae2
commit a5a294053d

View File

@ -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;