go/types: fix build
Fixes golang/go#13603 Change-Id: Ie35094e9fd9976317340fae19425bffa307d7c8a Reviewed-on: https://go-review.googlesource.com/17753 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8297301f3a
commit
1cdaff4a02
|
@ -1297,7 +1297,7 @@ func (check *Checker) exprInternal(x *operand, e ast.Expr, hint Type) exprKind {
|
||||||
|
|
||||||
// check indices
|
// check indices
|
||||||
var ind [3]int64
|
var ind [3]int64
|
||||||
for i, expr := range []ast.Expr{e.Low, e.High, sliceMax(e)} {
|
for i, expr := range []ast.Expr{e.Low, e.High, e.Max} {
|
||||||
x := int64(-1)
|
x := int64(-1)
|
||||||
switch {
|
switch {
|
||||||
case expr != nil:
|
case expr != nil:
|
||||||
|
|
Loading…
Reference in New Issue