Skip to content

Field initializer anonymous inner class fouling up type inferencing / semantic highlighting #383

@mauromol

Description

@mauromol

Follow-up to #378.
Consider the following Groovy class:

package test8
class A {
	protected def m() { }
	
	Object p = new Object() {
		String toString() {
			m()
		}
	}
	
	void init() {
		def whatever = new Object() {
		  def something() {
			m()
		  }
		}
	  }
  }

m() call from the definition of whatever local variable is not underlined, but it's not actually recognized, as you can see with F2 or F3 on it, or by trying to rename m() to something else.

Please note that if you comment out the p field definition, then the second call to m() becomes recognized.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions