mirror of
https://github.com/golang/go
synced 2024-09-04 23:44:16 +00:00
![Robert Griesemer](/assets/img/avatar_default.png)
Change-Id: I103e3eeacd5b11efd63c965482a626878ba5ac81 Reviewed-on: https://go-review.googlesource.com/c/go/+/275216 Trust: Robert Griesemer <gri@golang.org> Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
16 lines
390 B
Go
16 lines
390 B
Go
// errorcheck
|
|
|
|
// Copyright 2014 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.
|
|
|
|
// gc used to recurse infinitely when dowidth is applied
|
|
// to a broken recursive type again.
|
|
// See golang.org/issue/9432.
|
|
package p
|
|
|
|
type foo struct { // ERROR "invalid recursive type|cycle"
|
|
bar foo
|
|
blah foo
|
|
}
|