Skip to content

Default parameters: wrong navigation on constructor call #774

@mauromol

Description

@mauromol

Somewhat follow up to #768

Consider this:

package test42

class GBean {

	GBean() {}
	
	GBean(String foo, String bar = 'hello') {}
	
	void doSomething() {}
	
	void doSomething(String foo, String bar = 'bar') {}
}

And this:

package test42;

class Test43 {

	void test() {
		def b2 = new GBean('foo')
		
		b2.doSomething()
		b2.doSomething('foo')
		b2.doSomething('foo', 'bar')
	}
}

Put the cursor over GBean on def b2 = new GBean('foo') and hit F3: you're brought to the first line of GBean class, while you should be brought to test42.GBean.GBean(String, String).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions