From: kramm Date: Tue, 30 Dec 2008 22:45:57 +0000 (+0000) Subject: added test for self-allocation within the constructor X-Git-Tag: release-0-9-0~586 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=2daaa128c1a6760377f1b57ac36385d34401010c;p=swftools.git added test for self-allocation within the constructor --- diff --git a/lib/as3/ok/new.as b/lib/as3/ok/new.as index 0baaf56..355a5a3 100644 --- a/lib/as3/ok/new.as +++ b/lib/as3/ok/new.as @@ -1,7 +1,10 @@ package some.other.packag3 { public class Class4 { - public function Class4() { - trace("ok 4/4"); + public function Class4(x=1) { + if(x) { + trace("ok 4/4"); + return new Class4(0); + } } } }