Skip to content

error message on overloaded main function can be improved #144

@mgerhold

Description

@mgerhold

Given the following code:

function main() { }

function main(n: U32) { }

This issues the following error message:

C:\dev\Cpp\Seatbelt\test.bs:1:1: main function must not be overloaded

This could be improved: The error should point to the second overload of main that has been found (instead of the start of the file).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions