The tests checking for empty interfaces so that they can be fast-
tracked in the code actually didn't test the right field and the
fast track code never executed. Doing it now.
Change-Id: I58b2951efb3fb40b3366874c79fd653591ae0e99
Reviewed-on: https://go-review.googlesource.com/97519
Reviewed-by: Alan Donovan <adonovan@google.com>
check.interfaces[tname] = nil // computation started but not complete
}
- if iface.Methods == nil {
+ if iface.Methods.List == nil {
// fast track for empty interface
info = &emptyIfaceInfo
} else {
func (check *Checker) interfaceType(ityp *Interface, iface *ast.InterfaceType, def *Named, path []*TypeName) {
// fast-track empty interface
- if iface.Methods == nil {
+ if iface.Methods.List == nil {
ityp.allMethods = markComplete
return
}