mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
pkg/proc: fix can not call method of an embedded filed directly (#1691)
`func (v *Variable) findMethod` should support for searching methods of an embedded filed. Fixes #1688
This commit is contained in:
@ -1181,6 +1181,8 @@ func TestCallFunction(t *testing.T) {
|
||||
{`strings.Join(stringslice, ",")`, []string{`:string:"one,two,three"`}, nil},
|
||||
{`strings.LastIndexByte(stringslice[1], 'w')`, []string{":int:1"}, nil},
|
||||
{`strings.LastIndexByte(stringslice[1], 'o')`, []string{":int:2"}, nil},
|
||||
{`d.Base.Method()`, []string{ `:int:4` }, nil },
|
||||
{`d.Method()`, []string{ `:int:4` }, nil },
|
||||
}
|
||||
|
||||
var testcases113 = []testCaseCallFunction{
|
||||
|
||||
Reference in New Issue
Block a user