Fixed #1769 Missing some body trait variable declaration

This commit is contained in:
Jindra Petřík
2022-11-23 23:42:45 +01:00
parent 3ff9a042c8
commit 25bc05012f
23 changed files with 407 additions and 114 deletions

View File

@@ -101,6 +101,7 @@ package
TestTryIf;
TestTryReturn;
TestTryReturn2;
TestUndefined;
TestUsagesTry;
TestVector;
TestVector2;

View File

@@ -0,0 +1,24 @@
package tests
{
public class TestUndefined
{
public function run():*
{
var i:int;
var j:int
var c:int = 5 + i;
var f = function() {
trace(c);
trace(j);
};
while (i < 10) {
trace(i);
i++;
}
f();
}
}
}