Skip to content

Invalid code gen on functions without return expression #5

@Shachar

Description

@Shachar
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Error messagesSomething not optimal in compilation errors user experiencebugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions