1
0
Fork 0

Adding upstream version 0.0~git20250307.c2e6a77.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-22 11:21:48 +02:00
parent be99035e76
commit b6e042e2af
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
64 changed files with 10976 additions and 0 deletions

51
test/b/functions.go Normal file
View file

@ -0,0 +1,51 @@
// package b
package b
func func0() {}
// single comment
func Func1() {}
// multi
// line
// comment
func Func2[T any](arg1 int) (a T, b error) {
return
}
// function with multiple generic types
func Func3[A string, B, C any](arg1 A, arg2 B, arg3 int) (a A, b C) {
return
}
// function that returns a function
func Func4(arg1 int) (a func() int) {
return a
}
// function with ommited argument types
func Func5(arg0 string, arg1, arg2 int) {
}
// function with reserved argument name and variadic type
func Func6(catch string, optional ...string) {
}
// function with ommited argument names
func Func7(string, int, ...bool) {
}
// function with named return values
func Func8() (b int, c string) {
return
}
// function with shortened return values
func Func9() (b, c string) {
return
}
// function with named and shortened return values
func Func10() (a int, b, c string) {
return
}