fixed globalvarassign test case
authorkramm <kramm>
Tue, 6 Jan 2009 21:35:39 +0000 (21:35 +0000)
committerkramm <kramm>
Tue, 6 Jan 2009 21:35:39 +0000 (21:35 +0000)
lib/as3/parser.y

index ea4da6b..46ed6d2 100644 (file)
@@ -2701,7 +2701,11 @@ VAR_READ : T_IDENTIFIER {
             MULTINAME(m, a);
             $$.c = abc_findpropstrict2($$.c, &m);
             $$.c = abc_getproperty2($$.c, &m);
-            $$.t = TYPE_FUNCTION(a->function);
+            if(a->function->kind == MEMBER_METHOD) {
+                $$.t = TYPE_FUNCTION(a->function);
+            } else {
+                $$.t = a->function->type;
+            }
         } else {
             if(a->slot) {
                 $$.c = abc_getglobalscope($$.c);