--- parser3/src/main/compile.tab.C 2003/04/03 06:40:38 1.81.2.13.2.23 +++ parser3/src/main/compile.tab.C 2003/04/03 11:19:49 1.81.2.13.2.24 @@ -43,7 +43,7 @@ Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.tab.C,v 1.81.2.13.2.23 2003/04/03 06:40:38 paf Exp $ + $Id: compile.tab.C,v 1.81.2.13.2.24 2003/04/03 11:19:49 paf Exp $ */ /** @@ -1041,11 +1041,11 @@ yyreduce: case 1: #line 123 "compile.y" { - Method& method=*new Method(/*main_method_name, */Method::CT_ANY, + Method& method=*new Method(Method::CT_ANY, 0, 0, /*min, max numbered_params_count*/ 0/*param_names*/, 0/*local_names*/, yyvsp[0]/*parser_code*/, 0/*native_code*/); - PC.cclass->add_method(main_method_name, method); + PC.cclass->add_method(PC.alias_method(main_method_name), method); ; break;} case 8: @@ -1153,7 +1153,7 @@ case 16: 0, 0/*min,max numbered_params_count*/, params_names, locals_names, yyvsp[0], 0); - PC.cclass->add_method(name, method); + PC.cclass->add_method(PC.alias_method(name), method); ; break;} case 19: