github.com/AndrienkoAleksandr/go@v0.0.19/src/go/doc/testdata/error1.1.golden (about) 1 // 2 PACKAGE error1 3 4 IMPORTPATH 5 testdata/error1 6 7 FILENAMES 8 testdata/error1.go 9 10 TYPES 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