mirror of
https://github.com/golang/go.git
synced 2025-11-09 21:21:03 +00:00
This CL extends {defer,resume}checkwidth to support nesting, which
simplifies usage.
Updates #33658.
Change-Id: Ib3ffb8a7cabfae2cbeba74e21748c228436f4726
Reviewed-on: https://go-review.googlesource.com/c/go/+/192721
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
27 lines
588 B
Go
27 lines
588 B
Go
// errorcheck
|
|
|
|
// Copyright 2009 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 I1 interface { I2 } // ERROR "interface"
|
|
type I2 int
|
|
|
|
type I3 interface { int } // ERROR "interface"
|
|
|
|
type S struct {
|
|
x interface{ S } // ERROR "interface"
|
|
}
|
|
type I4 interface { // GC_ERROR "invalid recursive type"
|
|
I4 // GCCGO_ERROR "interface"
|
|
}
|
|
|
|
type I5 interface { // GC_ERROR "invalid recursive type"
|
|
I6 // GCCGO_ERROR "interface"
|
|
}
|
|
|
|
type I6 interface {
|
|
I5 // GCCGO_ERROR "interface"
|
|
}
|