types2 methods are now sorted in the same way as types1, so this TODO is
no longer needed. (Comment change only).
Change-Id: Ic975ce001a5d54f15381a9cb7b6969dff795e3b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/360856
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
return DotField(pos, x, last)
}
- // TODO(danscales,mdempsky): Interface method sets are not sorted the
- // same between types and types2. In particular, using "last" here
- // without conversion will likely fail if an interface contains
- // unexported methods from two different packages (due to cross-package
- // interface embedding).
-
var n ir.Node
method2 := selinfo.Obj().(*types2.Func)