From: kramm Date: Tue, 30 Dec 2008 23:00:07 +0000 (+0000) Subject: fixed bug in creation of dynamic classes X-Git-Tag: release-0-9-0~539 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=d76b64d25bf7801e86f3ba1d21209abb3b219cb9;p=swftools.git fixed bug in creation of dynamic classes --- diff --git a/lib/as3/parser.y b/lib/as3/parser.y index 9940fa5..19c878b 100644 --- a/lib/as3/parser.y +++ b/lib/as3/parser.y @@ -903,6 +903,8 @@ code_t*converttype(code_t*c, classinfo_t*from, classinfo_t*to) } if(TYPE_IS_FUNCTION(from) && TYPE_IS_FUNCTION(to)) return c; + if(TYPE_IS_CLASS(from) && TYPE_IS_CLASS(to)) + return c; syntaxerror("can't convert type %s to %s", from->name, to->name); }