Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naming conflict with main function in main.vi file #196

Open
nilscrm opened this issue Mar 19, 2025 · 0 comments
Open

Naming conflict with main function in main.vi file #196

nilscrm opened this issue Mar 19, 2025 · 0 comments

Comments

@nilscrm
Copy link
Contributor

nilscrm commented Mar 19, 2025

Given the file main.vi with

pub fn main(&io: &IO) { }

the following error occurs:

error main.vi:1:1 - duplicate definition of `main`
error - cannot find `main` in `::main`

This is because the ::main::main function definition clashes with the internal ::main node that is used as entry point to the program.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant