mirror of
https://github.com/golang/go
synced 2024-11-06 00:26:11 -07:00
57666c3fe8
Fixes #17030. Change-Id: Ic7f237ac7553ae0176929056e64b01667ed59066 Reviewed-on: https://go-review.googlesource.com/31351 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
17 lines
376 B
Go
17 lines
376 B
Go
// errorcheck
|
|
|
|
// Copyright 2011 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.
|
|
|
|
package main
|
|
|
|
// type T int
|
|
|
|
func main() {}
|
|
|
|
// issue 1474
|
|
|
|
// important: no newline on end of next line.
|
|
// 6g used to print <epoch> instead of bug332.go:111
|
|
func (t *T) F() {} // ERROR "undefined: T"
|