...

Text file src/go/doc/testdata/error1.1.golden

Documentation: go/doc/testdata

     1// 
     2PACKAGE error1
     3
     4IMPORTPATH
     5	testdata/error1
     6
     7FILENAMES
     8	testdata/error1.go
     9
    10TYPES
    11	// 
    12	type I0 interface {
    13		// When embedded, the predeclared error interface
    14		// must remain visible in interface types.
    15		error
    16	}
    17
    18	// 
    19	type S0 struct {
    20		// In struct types, an embedded error must only be visible
    21		// if AllDecls is set.
    22		error
    23	}
    24
    25	// 
    26	type T0 struct {
    27		ExportedField interface {
    28			// error should be visible
    29			error
    30		}
    31	}
    32

View as plain text