-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve error message for missing Main class #328
Comments
This is a duplicate of #286, but since it's higher in the list, I'll close the old one :) |
Discussion at meeting 2016-05-12
|
One way to get around the problems in 1. would be to have a |
@EliasC I have compiled the program with the I think before getting the consensus about having a
|
@PhucVH888: It generates C-code, but does not compile it (which is enough for typechecking modules without a |
|
+1
More or less. We can compile a program, but not run clang on the resulting C-code, which for now doesn't give us the "no main" error. When the compiler actually checks for |
@EliasC |
The following program
is erroneous because the class should be named
Main
, notTest
.Trying to compile this produces a linker error in clang (!):
This should change into a proper (understandable) error message much further up the stack!
Similarly, a missing main-method should also be caught.
The text was updated successfully, but these errors were encountered: