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

Type interferences seems still buggy #1384

Closed
efc-mw opened this issue Aug 1, 2022 · 1 comment
Closed

Type interferences seems still buggy #1384

efc-mw opened this issue Aug 1, 2022 · 1 comment

Comments

@efc-mw
Copy link

efc-mw commented Aug 1, 2022

I verified the progress with Groovy 4.0.4 of my compile problem, the groovy editor still won't accept the following java functional syntax:
In java this is fine:

	public void works() {
		daoV_search_doc_key.selBy(s-> s.where(V_search_doc_keySql.ISDELETED, isEqualTo(0)));
	}

In Groovy, this is wrong:

	public void works() {
		daoV_search_doc_key.selBy(s-> s.where(V_search_doc_keySql.ISDELETED, isEqualTo(0)))
	}

A repo to reproduce:
https://github.com/EffectiveCompany/public_repo.git

@eric-milles
Copy link
Member

eric-milles commented Aug 1, 2022

In your example project, the Groovy code is still indicated as @CompileStatic which was not addressed by #1364. You will need to wait for GROOVY-10646 for type-checked code or switch to dynamic mode.

Also #1368 and #1369 should help the editor but not the compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants