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

Missing code assist while typing a ternary operator #359

Closed
mauromol opened this issue Nov 2, 2017 · 2 comments
Closed

Missing code assist while typing a ternary operator #359

mauromol opened this issue Nov 2, 2017 · 2 comments
Assignees
Milestone

Comments

@mauromol
Copy link

mauromol commented Nov 2, 2017

Consider this example:

package test

class Ternary {

	static main(args) {
		def a = true? String.val|
	}
}

Assume I want to call String.valueOf(boolean). Invoke code assist at "|": no suggestion is given.
In order to make Groovy give me some suggestions, I have to complete the second assignment, i.e. something like this:

def a = true? String.val| : 'false'

If you invoke code assist at "|", it then works.

@eric-milles
Copy link
Member

ready to test

@mauromol
Copy link
Author

Hi Eric, I tested this with 3.0.0.xx-201802242107-e47 and it seems to work fine now, thank you! 👍

@eric-milles eric-milles self-assigned this Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants