git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added test for finally
[swftools.git]
/
lib
/
as3
/
ok
/
new.as
diff --git
a/lib/as3/ok/new.as
b/lib/as3/ok/new.as
index
03a24cb
..
792f7c5
100644
(file)
--- a/
lib/as3/ok/new.as
+++ b/
lib/as3/ok/new.as
@@
-1,7
+1,10
@@
-package some.other.package {
+package some.other.packag3 {
public class Class4 {
public class Class4 {
- public function Class4() {
- trace("ok 4/4");
+ public function Class4(x=1) {
+ if(x) {
+ trace("ok 4/6");
+ return new Class4(0);
+ }
}
}
}
}
}
}
@@
-9,12
+12,12
@@
package some.other.package {
package {
public class Class1 {
public function Class1() {
package {
public class Class1 {
public function Class1() {
- trace("ok 1/4");
+ trace("ok 1/6");
}
}
public class Class2 {
public function Class2() {
}
}
public class Class2 {
public function Class2() {
- trace("ok 2/4");
+ trace("ok 2/6");
}
}
public class Class3 {
}
}
public class Class3 {
@@
-23,13
+26,30
@@
package {
}
}
}
}
+ public class Class5 {
+ public function Class5() {
+ trace("ok 5/6")
+ }
+ }
+ public class Class6 {
+ public function Class6() {
+ trace("ok 6/6")
+ }
+ }
+
+ import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
public function Main() {
new Class1()
new Class2
public class Main extends flash.display.MovieClip {
public function Main() {
new Class1()
new Class2
- new Class3(0,"ok 3/3")
- import some.other.package.Class4
+ new Class3(0,"ok 3/6")
+ import some.other.packag3.Class4
new Class4();
new Class4();
+
+ var x = Class5;
+ new Class5;
+ var y:Class = Class6;
+ new Class6();
}
}
}
}
}
}