Don't assume that an expression cannot be associated with a function declaration

This commit is contained in:
Kamil Śliwak
2020-05-27 00:05:18 +02:00
parent 50b200a5d5
commit f574d8ec3a
2 changed files with 24 additions and 2 deletions
@@ -675,8 +675,6 @@ void IRGeneratorForStatements::endVisit(FunctionCall const& _functionCall)
solAssert(functionDef->isImplemented(), "");
}
else
solAssert(!functionType->hasDeclaration(), "");
solAssert(!functionType->takesArbitraryParameters(), "");