Skip to content

Java Back-end Incompatible Types: Bad Return type in Lambda Expression #29

Description

@alex-usher
datatype D = A | B

method Main() {
    print match A {
        case A => 'c'
        case _ => 'a'
    };
}

throws the following exception when compiling to Java:

error: incompatible types: bad return type in lambda expression

(will fill rest in later)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions