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:
ad21557
)
added tests for default parameter constant usage
author
Matthias Kramm
<kramm@quiss.org>
Sun, 15 Mar 2009 21:21:25 +0000
(22:21 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Sun, 15 Mar 2009 21:21:25 +0000
(22:21 +0100)
lib/as3/ok/const.as
patch
|
blob
|
history
diff --git
a/lib/as3/ok/const.as
b/lib/as3/ok/const.as
index
a9517aa
..
11edd59
100644
(file)
--- a/
lib/as3/ok/const.as
+++ b/
lib/as3/ok/const.as
@@
-7,14
+7,30
@@
package {
const ok3:String = "ok 3/4";
static const ok4:String = "ok 4/4";
+
+ const ok5:String = "ok 3/4";
+ static const ok6:String = "ok 4/4";
function Main() {
trace(ok1);
trace(ok2);
trace(this.ok3);
trace(Main.ok4);
+ f1();
+ f2();
trace("[exit]");
}
+ function f0(x:Number=1000)
+ {
+ }
+ function f1(x:String=ok5)
+ {
+ trace(x);
+ }
+ function f2(x:String=ok6)
+ {
+ trace(x);
+ }
}
}