vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.69k stars 2.15k forks source link

checker: support nested labeled for statements #21658

Closed spytheman closed 3 months ago

spytheman commented 3 months ago

Adds support for:

abc: for x in 0..5 {
        def: for y in 0..5 {
                if y > 3 {
                        continue abc
                }
                println('> x: $x | y: ${y}')
        }
}