Commit c06dba73 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

OOP: fixed code generated for aliases of class types (bug 563718)


Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
Change-Id: I1df08d1b47422a1143790d91d70a1ad21dcd7fb3
parent 0a6ded00
......@@ -1247,6 +1247,13 @@ void Type::generate_code_alias(output_struct *target)
"typedef %s_template %s_template;\n",
refd_name, own_name);
break;
case T_CLASS: {
Ttcn::ClassTypeBody* class_ = t_last->get_class_type_body();
target->header.typedefs = mputprintf(target->header.typedefs,
"typedef %s %s;\n",
class_->is_built_in() ? "OBJECT" : t_last->get_genname_own(my_scope).c_str(),
own_name);
break; }
default: // value and template classes exist
target->header.typedefs = mputprintf(target->header.typedefs,
#ifndef NDEBUG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment