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