X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Fas3%2Fparser.y;h=19c878b54a8c9cb336312c49b1b9129c7fe506bc;hb=d76b64d25bf7801e86f3ba1d21209abb3b219cb9;hp=9940fa56fac18165d477389f5ced95545a0556f5;hpb=d730cd0a68888a4bee1484276735db5185ed7c5b;p=swftools.git 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); }