mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-12 14:28:36 +00:00
Fixed: #2636 ActionScript 3 - type coercion / convert, local registers type propagation
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@ package tests
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
var v = 5;
|
||||
var v:int = 5;
|
||||
trace("a");
|
||||
if(v > 4)
|
||||
{
|
||||
|
||||
@@ -109,10 +109,15 @@ package tests
|
||||
i = super.prot;
|
||||
s = String(super.prot);
|
||||
|
||||
|
||||
var a2:* = "5";
|
||||
var s2:String = "s";
|
||||
var i2:int = a2;
|
||||
a2 = Number(a2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class LocalClass{
|
||||
public var attr:int = 5;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ package tests
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a = 1;
|
||||
var b = 2;
|
||||
var a:int = 1;
|
||||
var b:int = 2;
|
||||
do {
|
||||
do {
|
||||
if (a) {
|
||||
|
||||
@@ -5,7 +5,7 @@ package tests
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
trace("hello");
|
||||
trace("hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user