mirror of
https://github.com/golang/go
synced 2024-11-26 20:41:24 -07:00
85ce3c7241
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
12 lines
256 B
Go
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"
|