mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.typeparams] cmd/compile/internal/types2: fix stray ')' in error
I missed this in the review of CL 277072, but noticed it in CL 277352. Change-Id: I432e3569eb4a935cee19805225f02c424d54011e Reviewed-on: https://go-review.googlesource.com/c/go/+/277962 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
8fe8e29c9f
commit
8ec9e89000
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func (check *Checker) call(x *operand, call *syntax.CallExpr) exprKind {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if call.HasDots {
|
if call.HasDots {
|
||||||
check.errorf(call.ArgList[0], "invalid use of ... in type conversion to %s)", T)
|
check.errorf(call.ArgList[0], "invalid use of ... in type conversion to %s", T)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
check.conversion(x, T)
|
check.conversion(x, T)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue