git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b95550e
)
added test for self-allocation within the constructor
author
kramm
<kramm>
Tue, 30 Dec 2008 22:45:57 +0000
(22:45 +0000)
committer
kramm
<kramm>
Tue, 30 Dec 2008 22:45:57 +0000
(22:45 +0000)
lib/as3/ok/new.as
patch
|
blob
|
history
diff --git
a/lib/as3/ok/new.as
b/lib/as3/ok/new.as
index
0baaf56
..
355a5a3
100644
(file)
--- 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);
+ }
}
}
}