From d76b64d25bf7801e86f3ba1d21209abb3b219cb9 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 30 Dec 2008 23:00:07 +0000 Subject: [PATCH] fixed bug in creation of dynamic classes --- lib/as3/parser.y | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 1.7.10.4