From 155d692959abda9358a20d7ff9ea21838781ef21 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 12 Oct 2019 04:11:07 +0300 Subject: [PATCH] fix alias generation --- compiler/module_header.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/module_header.v b/compiler/module_header.v index 7309304f90..cc6fbd7f42 100644 --- a/compiler/module_header.v +++ b/compiler/module_header.v @@ -174,7 +174,8 @@ fn (v &V) generate_vh() { } // type alias if typ.parent != '' && typ.cat == .alias { - file.writeln('type $typ.name $typ.parent') + parent := v_type_str(typ.parent) + file.writeln('type $typ.name $parent') } if typ.cat in [TypeCategory.struct_, .c_struct] { c := if typ.is_c { 'C.' } else { '' }