fixed packageinit test case
authorMatthias Kramm <kramm@quiss.org>
Fri, 30 Jan 2009 18:54:55 +0000 (19:54 +0100)
committerMatthias Kramm <kramm@quiss.org>
Fri, 30 Jan 2009 18:54:55 +0000 (19:54 +0100)
lib/as3/parser.y

index 6aa84e4..70d2be2 100644 (file)
@@ -2079,6 +2079,7 @@ SLOT_DECLARATION: MAYBE_MODIFIERS VARCONST T_IDENTIFIER MAYBETYPE MAYBEEXPRESSIO
     code_t**code;
     if(!state->cls) {
         // global variable
+        mname_ns.name = state->package;
         traits = &global->init->traits;
         code = &global->init->method->body->code;
     } else if(flags&FLAG_STATIC) {