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

Invalid code gen on functions without return expression #5

Open
Shachar opened this issue Mar 15, 2019 · 0 comments
Open

Invalid code gen on functions without return expression #5

Shachar opened this issue Mar 15, 2019 · 0 comments
Labels
bug Something isn't working Error messages Something not optimal in compilation errors user experience good first issue Good for newcomers

Comments

@Shachar
Copy link
Collaborator

Shachar commented Mar 15, 2019

def func() -> S32 {}

The above code should return a compile time error (not passing return value to function returning non-Void), but instead produces bad LLVM-IR code.

@Shachar Shachar added the bug Something isn't working label Mar 15, 2019
@Shachar Shachar self-assigned this Mar 15, 2019
@Shachar Shachar added the good first issue Good for newcomers label Mar 15, 2019
@Shachar Shachar removed their assignment Mar 15, 2019
@Shachar Shachar assigned Shachar and unassigned Shachar Dec 21, 2019
@Shachar Shachar added the Error messages Something not optimal in compilation errors user experience label Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Error messages Something not optimal in compilation errors user experience good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant