added more tests
[swftools.git] / lib / as3 / ok / innerfunctionslots.as
diff --git a/lib/as3/ok/innerfunctionslots.as b/lib/as3/ok/innerfunctionslots.as
new file mode 100644 (file)
index 0000000..5326e2a
--- /dev/null
@@ -0,0 +1,20 @@
+package {
+    import flash.display.MovieClip
+    import flash.events.Event
+
+    public class Main extends flash.display.MovieClip {
+        public function test(e:Event) {
+            if(e.type instanceof String) {
+                trace("ok");
+            }
+
+            function inner(x:String) {
+                trace(e.type);
+            }
+        }
+        public function Main() {
+            var e = new Event("");
+            test(e);
+        }
+    }
+}