1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:04:44 -07:00
go/test/fixedbugs/bug451.go
Daniel Morsing 85ce3c7241 cmd/gc: mark broken type declarations as broken.
This fixes a spurious 'invalid recursive type' error, and stops the compiler from emitting errors on uses of the invalid type.

Fixes #3766.

R=golang-dev, dave, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6443100
2012-08-31 13:02:29 -04:00

12 lines
256 B
Go

// errorcheck
// Copyright 2012 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 x.T // ERROR "undefined"
// bogus "invalid recursive type"