test for late inner functions
authorMatthias Kramm <kramm@quiss.org>
Mon, 2 Feb 2009 17:46:33 +0000 (18:46 +0100)
committerMatthias Kramm <kramm@quiss.org>
Mon, 2 Feb 2009 17:46:33 +0000 (18:46 +0100)
lib/as3/ok/innerfunctionlate.as [new file with mode: 0644]

diff --git a/lib/as3/ok/innerfunctionlate.as b/lib/as3/ok/innerfunctionlate.as
new file mode 100644 (file)
index 0000000..8621cda
--- /dev/null
@@ -0,0 +1,27 @@
+package {
+    import flash.display.MovieClip
+
+    public class Main extends flash.display.MovieClip {
+        public function Main() {
+            var log = f3;
+            f1("ok 1/3");
+            var f = f2;
+            f("2/3");
+
+            f0();
+
+            function f0() {
+                f3("ok","3","3");
+            }
+            function f1(text) {
+                trace(text);
+            }
+            function f2(text) {
+                trace("ok "+text);
+            }
+            function f3(t1,t2,t3) {
+                trace(t1+" "+t2+"/"+t3);
+            }
+        }
+    }
+}