diff --git a/src/reflect/type.go b/src/reflect/type.go index 45af9683..328f5900 100644 --- a/src/reflect/type.go +++ b/src/reflect/type.go @@ -795,6 +795,11 @@ func (t *rawType) AssignableTo(u Type) bool { if t == u.(*rawType) { return true } + + if u.Kind() == Interface && u.NumMethod() == 0 { + return true + } + if u.Kind() == Interface { panic("reflect: unimplemented: AssignableTo with interface") }