[FIXUP] Extra assertions in the type checker

This commit is contained in:
Kamil Śliwak
2022-08-11 09:37:32 +02:00
parent 84c42d4ae2
commit a5a294053d
+3
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;