Skip to content

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

@LinqLover

Description

@LinqLover

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions