From 26d27dff034cba4973ce545af4474fbe7e0e1866 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 6 Jan 2009 21:35:39 +0000 Subject: [PATCH] fixed globalvarassign test case --- lib/as3/parser.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 1.7.10.4