]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.typeparams] cmd/compile/internal/types2: fix stray ')' in error
authorRob Findley <rfindley@google.com>
Fri, 11 Dec 2020 21:29:08 +0000 (16:29 -0500)
committerRobert Griesemer <gri@golang.org>
Mon, 14 Dec 2020 21:34:50 +0000 (21:34 +0000)
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>

src/cmd/compile/internal/types2/call.go

index 5ecd54ab0b3e99084a235674505e35294ee6475f..5a7ae221e6ebda8b35b72050df2a993815c64629 100644 (file)
@@ -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)