Also, simplify one expression (missed comment on previous review).
Change-Id: Ic2d212442c2738e03c733336bb990e28c8912ca4
Reviewed-on: https://go-review.googlesource.com/c/go/+/379254
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
+// Copyright 2022 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
package types
// Implementation of structural type computation for types.
default:
// m.Type is a single non-interface type, so r2 is just a
// one-element list, inf2 is false.
- r2 = []term{term{false, m.Type}}
+ r2 = []term{{false, m.Type}}
}
if inf2 {