Skip to content

Can't break to a labeled loop from inside a for loop #4131

Closed
@catamorphism

Description

@catamorphism

Because for loop bodies are closures, implementing this case is a PITA. I haven't done it yet.

e.g.

loop foo: {
    for whatever() |x| {
         break foo;
    }
}
// ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions