Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/compile/internal/typecheck: use types.IsMethodApplicable
In checking whether a type implements an interface, there's this complex predicate spanning multiple lines, which is very obtuse. So let's just use the helper function we already have in package types instead. Change-Id: I80f69d41c2bee8d6807601cf913840fa4f042b5e Reviewed-on: https://go-review.googlesource.com/c/go/+/521435 Run-TryBot: Matthew Dempsky <[email protected]> Reviewed-by: Than McIntosh <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> Auto-Submit: Matthew Dempsky <[email protected]>
- Loading branch information