...

Package decls2

import "internal/types/testdata/check/decls2"
Overview
Index

Overview ▾

type T1

T1 declared before its methods.

type T1 struct {
    // contains filtered or unexported fields
}

type T1b

Conflict between embedded field and method name, with the embedded field being a basic type.

type T1b struct {
    // contains filtered or unexported fields
}

type T1c

type T1c struct {
    time.Time
}

func (T1c) Time

func (T1c) Time() int

type T2

type T2 struct {
    // contains filtered or unexported fields
}

type T3

type T3 struct {
    // contains filtered or unexported fields
}

type T4

Methods of non-struct type.

type T4 func()

type T5

Methods associated with an interface.

type T5 interface {
    // contains filtered or unexported methods
}

type T6

type T6 struct {
    // contains filtered or unexported fields
}

type T7

Receiver declarations are regular parameter lists; receiver types may use parentheses, and the list may have a trailing comma.

type T7 struct{}

type UP

Unsafe.Pointer is treated like a pointer when used as receiver type.

type UP unsafe.Pointer