--- /dev/null
+package some.other.module {
+ function getmsg() {
+ trace("error");
+ }
+}
+
+package {
+ import some.other.module.*;
+ getmsg();
+}
--- /dev/null
+package my.namespaces {
+ public namespace ns1 = "http://www.some.other/namespace";
+ public namespace ns2 = "http://www.swftools.org/";
+
+ public class Test {
+ ns1 ns2 static function test() {
+ }
+ }
+}
+
--- /dev/null
+package {
+ interface A {
+ var x;
+
+ // error: interface can not have top-level code
+ if(x==0) {
+ } else {
+ }
+ }
+}
--- /dev/null
+package package1 {
+ public class A {
+ public var x;
+ public static function f()
+ {
+ x = 3; //error: this member is not static
+ }
+ }
+}