Skip to content

Fix type inferencing and syntax highlighting for instanceof followed by && #977

@eric-milles

Description

@eric-milles

Consider the following:

class Pogo {
  private String field
  boolean equals(Object that) {
    that instanceof Pogo && that.field.equals(this.field)
  }
}

"field" is showing as unknown (underlined) after variable expression that has been tested by instanceof.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions