From 896a7ae0c09012212071f9b3205b920632fc67f7 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 3 Feb 2009 19:50:04 +0100 Subject: [PATCH] added more test cases --- lib/as3/ok/new.as | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/lib/as3/ok/new.as b/lib/as3/ok/new.as index 44ca430..5fcd2bb 100644 --- a/lib/as3/ok/new.as +++ b/lib/as3/ok/new.as @@ -2,22 +2,24 @@ package some.other.packag3 { public class Class4 { public function Class4(x=1) { if(x) { - trace("ok 4/6"); + trace("ok 4/9"); new Class4(0); } } } + + public class Class9 {public function Class9() {trace("ok 9/9");}} } package { public class Class1 { public function Class1() { - trace("ok 1/6"); + trace("ok 1/9"); } } public class Class2 { public function Class2() { - trace("ok 2/6"); + trace("ok 2/9"); } } public class Class3 { @@ -28,12 +30,22 @@ package { public class Class5 { public function Class5() { - trace("ok 5/6") + trace("ok 5/9") } } public class Class6 { public function Class6() { - trace("ok 6/6") + trace("ok 6/9") + } + } + public class Class7 { + public function Class7() { + trace("ok 7/9") + } + } + public class ClassX { + public function ClassX(x:uint) { + trace("ok "+x+"/9") } } @@ -42,7 +54,7 @@ package { public function Main() { new Class1() new Class2 - new Class3(0,"ok 3/6") + new Class3(0,"ok 3/9") import some.other.packag3.Class4 new Class4(); @@ -50,6 +62,13 @@ package { new x; var y:Class = Class6; new y; + + var a = [Class7, ClassX]; + new a[0]; + new a[1](8); + + new some.other.packag3.Class9; + trace("[exit]"); } } -- 1.7.10.4