Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 18, 2024
1 parent c60bbb7 commit 215e4e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -7955,7 +7955,7 @@ static inline __shared__${interface_name} ${shared_fn_name}(__shared__${cctype}*
parent_sym := g.table.sym(st_sym.info.parent_type)
match parent_sym.info {
ast.Struct, ast.Interface, ast.SumType {
t_method_names := methods.map(it.name)
mut t_method_names := methods.map(it.name)
for method in parent_sym.methods {
if method.name in methodidx {
parent_method := parent_sym.find_method_with_generic_parent(method.name) or {
Expand All @@ -7967,6 +7967,7 @@ static inline __shared__${interface_name} ${shared_fn_name}(__shared__${cctype}*
if parent_method.name !in t_method_names {
methods << parent_method
aliased_method_names << parent_method.name
t_method_names << parent_method.name
}
}
}
Expand All @@ -7977,10 +7978,11 @@ static inline __shared__${interface_name} ${shared_fn_name}(__shared__${cctype}*
else {}
}
t_methods := g.table.get_embed_methods(st_sym)
t_method_names := methods.map(it.name)
mut t_method_names := methods.map(it.name)
for t_method in t_methods {
if t_method.name !in t_method_names {
methods << t_method
t_method_names << t_method.name
}
}

Expand Down

0 comments on commit 215e4e7

Please sign in to comment.