Skip to content

Commit 57ad6ef

Browse files
ajz01griesemer
authored andcommitted
go/parser: remove superfluous case from switch statement
Change-Id: I96a9b34bf8e42c21a3e0258cbc8b1416328834be GitHub-Last-Rev: 3270961 GitHub-Pull-Request: #35066 Reviewed-on: https://go-review.googlesource.com/c/go/+/202598 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Robert Griesemer <[email protected]>
1 parent 9979366 commit 57ad6ef

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/go/parser/parser.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,6 @@ func (p *parser) checkExprOrType(x ast.Expr) ast.Expr {
14461446
switch t := unparen(x).(type) {
14471447
case *ast.ParenExpr:
14481448
panic("unreachable")
1449-
case *ast.UnaryExpr:
14501449
case *ast.ArrayType:
14511450
if len, isEllipsis := t.Len.(*ast.Ellipsis); isEllipsis {
14521451
p.error(len.Pos(), "expected array length, found '...'")

0 commit comments

Comments
 (0)