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

Bug: Type-guessing does not honor non-local returns #110

Open
LinqLover opened this issue Mar 4, 2022 · 0 comments
Open

Bug: Type-guessing does not honor non-local returns #110

LinqLover opened this issue Mar 4, 2022 · 0 comments

Comments

@LinqLover
Copy link
Collaborator

Non-local return must not be recorded as the type of the enclosing block (in the example guessClassExpensive answers SmallInteger rather than nil)

Could be implemented by wrapping the evaluation with an assignment and reading the variable rather than relying on the return value, I guess

image

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

1 participant