From: kramm Date: Tue, 6 Jan 2009 21:35:39 +0000 (+0000) Subject: fixed globalvarassign test case X-Git-Tag: release-0-9-0~379 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=26d27dff034cba4973ce545af4474fbe7e0e1866;p=swftools.git fixed globalvarassign test case --- diff --git a/lib/as3/parser.y b/lib/as3/parser.y index ea4da6b..46ed6d2 100644 --- a/lib/as3/parser.y +++ b/lib/as3/parser.y @@ -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);