You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
typeFoostruct {
barBar
}
typeBarstruct {}
func (b*Bar) Args(astring) {}
func (b*Bar) NoArgs() {}
funcmain() {
f:=new(Foo)
f.bar.Args() // should be an errorf.bar.NoArgs("argument") // should be an error
}
./main.go:13: not enough arguments in call to f.bar.Args
./main.go:14: too many arguments in call to f.bar.NoArgs