Skip to content

Enhance type inferencing and syntax highlighting for x.class == Type (like x instanceof Type) #1101

@eric-milles

Description

@eric-milles

Consider the following:

class Pogo1101 {
  def foo, bar, baz
  @Override
  boolean equals(Object that) {
    that.class == Pogo1101 &&
      that.foo == this.foo &&
      that.bar == this.bar &&
      that.baz == this.baz
  }
}

Property expressions after the class test could take advantage of flow typing like instanceof. Currently they show as unknown (underlined).

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions