Skip to content

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

@eric-milles

Description

@eric-milles

Consider the following:

void test(flag, x) {
  if (flag && x instanceof T) {
    x.methodFromT()
  }
}

typeof(x) is seen as Object and "methodFromT" is showing 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