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 foo
var (
Base=TypeType.New()
// To trigger the problem// * Need Base as argument - it is fine if you substitute with nil// * Need the x, _ = form of callSomething, _=NewSomething(Base)
)
funcNewSomething(t*Type) (*Type, error) {
returnnil, nil
}
The same problem exists on
Linux amd64, ubuntu 14.04
No error
If you look in t.go you can see that method is defined.
If you concatenate e.go and
t.go
and compile (remove duplicate package line) then it compiles fine.Here is the Gist
e.go
t.go
The text was updated successfully, but these errors were encountered: