Skip to content

Fix syntax highlighting for this in trait static context #1540

@eric-milles

Description

@eric-milles

Consider the following:

trait T {
  static m() {
    def that = this
    that.something()
  }
  static something() {}
}

The keyword this highlights as a parameter. Also, type inferenceing breaks down if it is assigned to another variable.

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions