mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix duplicate method wrapper from interface method call. closes #9018
This commit is contained in:
parent
2b53992c01
commit
01735c67c6
@ -6222,14 +6222,7 @@ $staticprefix $interface_name* I_${cctype}_to_Interface_${interface_name}_ptr($c
|
||||
if g.pref.build_mode != .build_module {
|
||||
methods_struct.writeln('\t{')
|
||||
}
|
||||
mut method := table.Fn{}
|
||||
for _, m in ityp.methods {
|
||||
for mm in st_sym.methods {
|
||||
if mm.name == m.name {
|
||||
method = mm
|
||||
break
|
||||
}
|
||||
}
|
||||
for _, method in st_sym.methods {
|
||||
if method.name !in imethods {
|
||||
// a method that is not part of the interface should be just skipped
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user