Fixed: #2636 ActionScript 3 - type coercion / convert, local registers type propagation

This commit is contained in:
Jindra Petřík
2026-02-18 22:37:55 +01:00
parent fab6defe9c
commit 0a4e53f455
21 changed files with 158 additions and 80 deletions

View File

@@ -7,7 +7,7 @@ package tests
{
while(true)
{
var v = 5;
var v:int = 5;
trace("a");
if(v > 4)
{

View File

@@ -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;
}
}

View File

@@ -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) {

View File

@@ -5,7 +5,7 @@ package tests
{
public function run():*
{
trace("hello");
trace("hello");
}
}
}