Skip to content

No error if 'fun` keyword missing in abstract function in enums #62

@Strum355

Description

@Strum355
public enum class TokenType(val type: String) {
    ILLEGAL("ILLEGAL"),
	/* ... */
    RBRACE("{");

    abstract parse(): Statement
}

This silently fails, no error on abstract parse(): Statement even though the fun keyword is missing. There is no error on the enum types either about a missing implementation. Only if the funkeyword is added, do they error correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiagnosticsLinting

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions