2014-12-23 22:14:04 +00:00
|
|
|
// errorcheck
|
|
|
|
|
2016-04-10 21:32:26 +00:00
|
|
|
// Copyright 2014 The Go Authors. All rights reserved.
|
2014-12-23 22:14:04 +00:00
|
|
|
// 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
|
|
|
|
|
2017-02-10 00:00:23 +00:00
|
|
|
type foo struct { // ERROR "invalid recursive type"
|
2014-12-23 22:14:04 +00:00
|
|
|
bar foo
|
|
|
|
blah foo
|
2017-02-10 00:00:23 +00:00
|
|
|
}
|