Closed ratefuchs closed 9 years ago
Multiple mains are already accounted for when checking for duplicate method names in ast::MethodDeclaration::collectDefinition. Reporting zero mains should be easy once MethodTable is usable.
Multiple mains in one method is already an error, but it is also forbidden to have multiple mains in the whole program.
we need to report an error if we have zero or multiple mains.