Home | History | Annotate | Download | only in testdata
      1 // 
      2 PACKAGE error2
      3 
      4 IMPORTPATH
      5 	testdata/error2
      6 
      7 FILENAMES
      8 	testdata/error2.go
      9 
     10 TYPES
     11 	// 
     12 	type I0 interface {
     13 		// When embedded, the locally-declared error interface
     14 		// is only visible if all declarations are shown.
     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 not be visible
     29 			error
     30 		}
     31 	}
     32 
     33 	// This error declaration shadows the predeclared error type. 
     34 	type error interface {
     35 		Error() string
     36 	}
     37 
     38