Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default parameters: wrong navigation on constructor call #774

Closed
mauromol opened this issue Nov 30, 2018 · 2 comments
Closed

Default parameters: wrong navigation on constructor call #774

mauromol opened this issue Nov 30, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@mauromol
Copy link

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).

@eric-milles
Copy link
Member

Ready to test

@mauromol
Copy link
Author

mauromol commented Dec 3, 2018

Works in 3.2.0.xx-201812021946-e48, thank you! 👍

@mauromol mauromol closed this as completed Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants