Set type properly for event parameters

This commit is contained in:
Leonardo Alt
2020-07-17 11:17:27 +02:00
parent e1a45ee97d
commit 2e1067a05a
4 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -664,7 +664,7 @@ bool TypeChecker::visit(EventDefinition const& _eventDef)
m_errorReporter.typeError(8598_error, _eventDef.location(), "More than 4 indexed arguments for anonymous event.");
else if (!_eventDef.isAnonymous() && numIndexed > 3)
m_errorReporter.typeError(7249_error, _eventDef.location(), "More than 3 indexed arguments for event.");
return false;
return true;
}
void TypeChecker::endVisit(FunctionTypeName const& _funType)