|
@@ -2,6 +2,8 @@ package unit;
|
|
|
|
|
|
class TestPhp extends Test
|
|
class TestPhp extends Test
|
|
{
|
|
{
|
|
|
|
+ var list : Array<Dynamic>;
|
|
|
|
+ var list2 : Array<Dynamic>;
|
|
function empty() return true;
|
|
function empty() return true;
|
|
function testAbstractEnum()
|
|
function testAbstractEnum()
|
|
{
|
|
{
|
|
@@ -12,6 +14,20 @@ class TestPhp extends Test
|
|
{
|
|
{
|
|
t(empty());
|
|
t(empty());
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function testList2()
|
|
|
|
+ {
|
|
|
|
+ list2 = new Array<Dynamic>();
|
|
|
|
+ for( l in list2 ) {} // fails here
|
|
|
|
+ t(true);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ function testList()
|
|
|
|
+ {
|
|
|
|
+ list = new Array<Dynamic>();
|
|
|
|
+ for( l in list ) {} // fails here
|
|
|
|
+ t(true);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
enum Annotation {
|
|
enum Annotation {
|