mirror of
https://github.com/golang/go
synced 2024-11-05 15:06:09 -07:00
b5e1ae46ad
Fixes #19667. Change-Id: Iaa71e2020af123c1bd3ac25e0b760956688e8bdf Reviewed-on: https://go-review.googlesource.com/38458 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
14 lines
333 B
Go
14 lines
333 B
Go
// errorcheck
|
|
|
|
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Make sure we don't crash when reporting this error.
|
|
|
|
package p
|
|
|
|
func f() {
|
|
if err := http.ListenAndServe(
|
|
} // ERROR "unexpected }, expecting expression"
|