mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
fix bugs breaking tests
This commit is contained in:
parent
ecb661f719
commit
1f67d9edd8
6 changed files with 47 additions and 41 deletions
|
@ -611,8 +611,11 @@ fn (p mut Parser) struct_decl() {
|
|||
names << field_name
|
||||
// We are in an interface?
|
||||
// `run() string` => run is a method, not a struct field
|
||||
if is_interface { //&& p.first_pass() {
|
||||
p.table.add_method(typ.name, p.interface_method(field_name, name))
|
||||
if is_interface {
|
||||
f := p.interface_method(field_name, name)
|
||||
if p.first_pass() {
|
||||
p.table.add_method(typ.name, f)
|
||||
}
|
||||
continue
|
||||
}
|
||||
// `pub` access mod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue