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

A V program must have a main function #53

Closed
Ivo-Balbaert opened this issue Apr 3, 2019 · 2 comments
Closed

A V program must have a main function #53

Ivo-Balbaert opened this issue Apr 3, 2019 · 2 comments
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@Ivo-Balbaert
Copy link
Contributor

The following program:

fn main2() {
types := ['game', 'web', 'tools', 'GUI']
for typ in types {
println('Hello, $typ developers!')
}
}

gives You just found a bug. V can't compile this program, but it should. Please create a GitHub issue.
It should give a better message like: undefined: main() function

@medvednikov
Copy link
Member

Fixed: function main is undeclared in the main module

@Ivo-Balbaert
Copy link
Contributor Author

Thanks!

Larpon pushed a commit to Larpon/v that referenced this issue Feb 24, 2022
@medvednikov medvednikov added the Bug This tag is applied to issues which reports bugs. label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

No branches or pull requests

2 participants