interp: fix type check of methods with a receiver of interface kind
Fixes #1280.
This commit is contained in:
@@ -1071,7 +1071,7 @@ func (t *itype) in(i int) *itype {
|
||||
return t.arg[i]
|
||||
case valueT:
|
||||
if t.rtype.Kind() == reflect.Func {
|
||||
if t.recv != nil {
|
||||
if t.recv != nil && !isInterface(t.recv) {
|
||||
i++
|
||||
}
|
||||
if t.rtype.IsVariadic() && i == t.rtype.NumIn()-1 {
|
||||
|
||||
Reference in New Issue
Block a user