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

Invalid it support in serializable scopes (lambda) #899

Closed
YannPoncet opened this issue Mar 11, 2019 · 1 comment
Closed

Invalid it support in serializable scopes (lambda) #899

YannPoncet opened this issue Mar 11, 2019 · 1 comment

Comments

@YannPoncet
Copy link

YannPoncet commented Mar 11, 2019

Let:

on Initialize {
	loggingName = "Jean1"
	Agent2.spawn
	var id = Agent3.spawn
	emit(new Hello, [elt | elt.UUID == id])
	new Hello().emit[UUID == id]
	killMe
}

The code generates the Java problem: it cannot be resolved

@gallandarakhneorg
Copy link
Member

This is an issue into the Java code generator.
A quick fix into your code (before the bug is really fixed into the SARL compiler) is to replace [UUID == id] by [it.UUID == id].

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