Skip to content

Type checker fails to check method returns #75

Open
@mattcce

Description

@mattcce

MWE (type-checker does not throw errors):

class C {
    public int method() {
    }
    
    public static void main(String[] args) {
        C c = new C();
        
        int x = c.method();
    }
}

The above should not pass type-checking; method does not return an int along all paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions