Skip to content

Checking code paths return a value #24

@TheSignPainter98

Description

@TheSignPainter98

Describe the bug

Not all codepaths return a value; this is not checked

To Reproduce

main :: int
main:
    int x = 1
#

### Expected behaviour

This should fail to compile 

### Environment (please complete the following information):

- OS: Ubuntu
- Emperor version unreleased

### Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions