Skip to content

java.lang.StackOverflowError during phase 'typer' #7131

Closed
@scabug

Description

@scabug

The compiler crashes with a StackOverflowError during the type-checking phase.

I have attached the source file which causes the crash as well as the output messages emitted by the IDE (IntelliJ) which contains the stacktrace and the details of the error.

The offending bit appears to be the contravariance annotation on the type parameter T for the ObservableTrait. If the annotation is removed or replaced with '+' then the program just doesn't compile which I believe is the right behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions