mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parent
55951e0943
commit
a95cdac635
@ -750,7 +750,7 @@ fn (mut g Gen) method_call(node ast.CallExpr) {
|
||||
}
|
||||
|
||||
left_is_shared := node.left_type.has_flag(.shared_f)
|
||||
left_cc_type := g.cc_type(node.left_type, false)
|
||||
left_cc_type := g.cc_type(g.table.unaliased_type(node.left_type), false)
|
||||
left_type_name := util.no_dots(left_cc_type)
|
||||
g.write('${c_name(left_type_name)}_name_table[')
|
||||
if node.left.is_auto_deref_var() && node.left_type.nr_muls() > 1 {
|
||||
|
0
vlib/v/gen/c/testdata/alias_interface_method_call.out
vendored
Normal file
0
vlib/v/gen/c/testdata/alias_interface_method_call.out
vendored
Normal file
9
vlib/v/gen/c/testdata/alias_interface_method_call.vv
vendored
Normal file
9
vlib/v/gen/c/testdata/alias_interface_method_call.vv
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
import io { Reader }
|
||||
|
||||
type Decoder = Reader
|
||||
|
||||
fn (mut d Decoder) decode(len int) ?[]u8 {
|
||||
mut buf := []u8{len: len}
|
||||
d.read(mut buf)?
|
||||
return buf
|
||||
}
|
Loading…
Reference in New Issue
Block a user