Adding upstream version 0.0~git20250307.c2e6a77.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
be99035e76
commit
b6e042e2af
64 changed files with 10976 additions and 0 deletions
36
test/a/interfaces.go
Normal file
36
test/a/interfaces.go
Normal file
|
@ -0,0 +1,36 @@
|
|||
package a
|
||||
|
||||
import "time"
|
||||
|
||||
type Empty interface{}
|
||||
|
||||
// unexported interface
|
||||
type interfaceA[T any] interface {
|
||||
// some comment
|
||||
unexportedFunc()
|
||||
|
||||
// some comment above the function
|
||||
Method0()
|
||||
|
||||
Method1() string // inline comment
|
||||
|
||||
// multi
|
||||
// line
|
||||
// comment
|
||||
Method2(argA, argB string) (T, int)
|
||||
|
||||
Method3(argA int, argB ...string) (T, []string, error)
|
||||
}
|
||||
|
||||
// multi
|
||||
// line
|
||||
// comment
|
||||
type InterfaceB interface {
|
||||
Empty
|
||||
interfaceA[int]
|
||||
|
||||
// "replace" Method0 from interfaceA
|
||||
Method0()
|
||||
|
||||
CustomMethod() time.Time
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue