mirror of
https://github.com/golang/go
synced 2024-11-22 16:44:54 -07: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
@ -129,7 +129,7 @@ func (check *Checker) call(x *operand, call *syntax.CallExpr) exprKind {
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
check.conversion(x, T)
|
||||
|
Loading…
Reference in New Issue
Block a user