X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Fparser.y;h=1364b0e380d8b8ffc3f17b8956e5ac29fccc7a5a;hb=0fb5f216b69c3385216d4038a7caffaecc0100b9;hp=6e1c2be61fe1ade2862413d9e859b8058f7c8c44;hpb=3405ac69abe80846d5a85e5aa8922c1c04209716;p=swftools.git diff --git a/lib/as3/parser.y b/lib/as3/parser.y index 6e1c2be..1364b0e 100644 --- a/lib/as3/parser.y +++ b/lib/as3/parser.y @@ -876,7 +876,12 @@ static void endfunction(token_t*ns, int flags, enum yytokentype getset, char*nam } } check_code_for_break(body); - f->body->code = body; + + if(f->body) + f->body->code = body; + else //interface + if(body) + syntaxerror("interface methods can't have a method body"); old_state(); }