Debian Codegraph @

src/internal/types/testdata/fixedbugs/issue66285.go

raw
1 // -lang=go1.13
2
3 // Copyright 2024 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package p
8
9 import "io"
10
11 // A "duplicate method" error should be reported for
12 // all these interfaces, irrespective of which package
13 // the embedded Reader is coming from.
14
15 type _ interface {
16 Reader
17 Reader // ERROR "duplicate method Read"
18 }
19
20 type Reader interface {
21 Read(p []byte) (n int, err error)
22 }
23
24 type _ interface {
25 io.Reader
26 Reader // ERROR "duplicate method Read"
27 }
28
29 type _ interface {
30 io.Reader
31 io /* ERROR "duplicate method Read" */ .Reader
32 }