whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,33 @@
package main
import (
"fmt"
"github.com/go-delve/delve/_fixtures/internal/pluginsupport"
)
func Fn2() string {
return "world"
}
type asomethingelse struct {
x, y float64
}
func (a *asomethingelse) Callback2(n, m int) float64 {
r := a.x + 2*a.y
r += float64(n) / float64(m)
return r
}
func TypesTest(s pluginsupport.Something) pluginsupport.SomethingElse {
if A != nil {
aIsNotNil(fmt.Sprintf("%s", A))
}
return &asomethingelse{1.0, float64(s.Callback(2))}
}
var A interface{}
func aIsNotNil(str string) {
// nothing here
}