Imports #
"time"
"unsafe"
"io"
"time"
"unsafe"
"io"
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = T7.m1
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = T7.m2
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = *ast.ParenExpr.m3
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = *ast.ParenExpr.m4
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = *ast.ParenExpr.m5
Check that methods with parenthesized receiver are actually present (issue #23130).
var _ = *ast.ParenExpr.m6
Double declarations across package files
const c_double = 0
Double declarations across package files
const c_double = 0
const pi = 3.1415
var v_double int
var v_double int
Methods of non-struct type.
type T4 func()
Unsafe.Pointer is treated like a pointer when used as receiver type.
type UP unsafe.Pointer
Methods associated with a named pointer type.
type ptr *int
type t_double int
type t_double int
Methods associated with an interface.
type T5 interface {
m() int
}
T1 declared before its methods.
type T1 struct {
f int
}
Conflict between embedded field and method name, with the embedded field being a basic type.
type T1b struct {
int
}
type T1c struct {
time.Time
}
type T2 struct {
f int
}
type T3 struct {
f *T3
}
type T6 struct {
x int
}
Receiver declarations are regular parameter lists; receiver types may use parentheses, and the list may have a trailing comma.
type T7 struct {
}
Blank types.
type _ struct {
m int
}
type _ struct {
m int
}
func (T1c) Time() int
func (T1) _(undefined)
func (Foo) _(undefined)
func (Foo) _()
func (Foo) _() int
func (T1) _() int
func (ptr) _()
Blank methods need to be type-checked. Verify by checking that errors are reported.
func (T) _()
func (a T3, b T3, c T3) _()
func (a T3, b T3) _()
func (T3, T3, T3) _()
func (T3, *T3) _()
Methods with zero or multiple receivers.
func () _()
func (*ptr) _()
func f()
func (x *T3) f()
func (x *T1) f()
T2's method declared before the type.
func (*T2) f()
func f_double()
func f_double()
func (T1b) int()
func (Foo) m() int
func (T1) m()
func (_) m()
func (T1) m()
func (self T4) m() func()
func (Foo) m(undefined)
Methods associated with non-local or unnamed types.
func (int) m()
func ([]int) m()
func (time.Time) m()
func (*time.Time) m()
func (x any) m()
Methods with undefined receiver type can still be checked. Verify by checking that errors are reported.
func (Foo) m()
Methods declared without a declared type.
func (undefined) m()
func (x *undefined) m()
func (T1) m()
func (T2) m(io.Writer)
func m(_)
func (pi) m1()
func (T7) m1()
Methods with receiver base type declared in another file.
func (T3) m1()
func (T5) m1()
func (t *T6) m1() int
func (UP) m1()
func (T5) m2()
func (*UP) m2()
func (x pi) m2()
func (*T3) m2()
func (*ast.ParenExpr) m2()
func (x T3) m3()
func (x *pi) m3()
func (*ast.ParenExpr) m3()
func (x **ast.ParenExpr) m4()
func (x *ast.ParenExpr) m5()
func (x *ast.ParenExpr) m6()
Generated with Arrow