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

Map and flatMap without return value now throws a better error #208

Conversation

nmigueles
Copy link

@nmigueles nmigueles commented Oct 5, 2024

Add check if closure.apply(element) return voids and if so throws a better message than before.

Before:

  wollok.lang.EvaluationError wrapping TypeScript Error: Could not resolve reference to element or its a reference to void

Now:

  wollok.lang.DomainException: Message send "closure.apply(element)" produces no value (missing return in method?)
image

Nos esta rompiendo un test de un example, hay que revisar si esta bien como hicimos el checkeo de void

@nmigueles nmigueles marked this pull request as draft October 5, 2024 18:30
@fdodino
Copy link
Contributor

fdodino commented Oct 27, 2024

Lo cierro para continuarlo en #218

@fdodino fdodino closed this Oct 27, 2024
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

Successfully merging this pull request may close these issues.

2 participants