Fixed AS3 - local registers type declarations vs for..in clause

This commit is contained in:
Jindra Petřík
2023-01-13 18:44:33 +01:00
parent 5d428eaa8b
commit e9568e413b
3 changed files with 8 additions and 8 deletions

View File

@@ -699,7 +699,7 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
@Test
public void testForInIf() {
decompileMethod("classic", "testForInIf", "var a:* = null;\r\n"
decompileMethod("classic", "testForInIf", "var a:String = null;\r\n"
+ "var arr:Array = [\"a\",\"b\",\"c\"];\r\n"
+ "var b:int = 5;\r\n"
+ "for(a in arr)\r\n"
@@ -733,7 +733,7 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
@Test
public void testForInSwitch() {
decompileMethod("classic", "testForInSwitch", "var a:* = null;\r\n"
decompileMethod("classic", "testForInSwitch", "var a:String = null;\r\n"
+ "var arr:Array = [\"a\",\"b\",\"c\"];\r\n"
+ "for(a in arr)\r\n"
+ "{\r\n"