Open esidegallery opened 4 months ago
Thanks! I'll take a look.
Adding the code from from the second .gif, for easy copy/paste.
package
{
public class Temp
{
public function test():void
{
for each (var item:Object in [])
{
switch (true)
{
case 1:
var foo:int;
break;
case 2:
var bar:int;
break;
}
}
}
}
}
I can reproduce with both for-each
and for-in
loops. I cannot reproduce with regular for
loops, while
loops, nor if
conditionals.
apache/royale-compiler@427d542518381c64eb23c1554d21dada53c5da2b
Initially discovered when the loop was named, but happens even with unnamed loops:
EDIT: Looks like this happens in switch statements within loops whether continue statement used or not: