Skip to content

Instantly share code, notes, and snippets.

@eikenb
Created May 14, 2013 23:18
Show Gist options
  • Save eikenb/5580500 to your computer and use it in GitHub Desktop.
Save eikenb/5580500 to your computer and use it in GitHub Desktop.
test/ in GOPATH/src
test/main.go
test/foo/bar.go
-- test/main.go --
package main
import "test/foo"
func main() {
a := foo.Test()
println(a.Boo())
}
-- test/foo/bar.go --
package foo
type Bar interface {
Boo() string
}
func Test() Bar { return make(tst) }
type tst map[string]interface{}
func (r tst) Boo() string { return "Boo!" }
@eikenb
Copy link
Author

eikenb commented May 14, 2013

walk [7fafa90f8128]
. MAKE l(6) tc(1)
./main.go:3: undefined: foo.tst
./main.go:6: tempname called with nil type
./main.go:6: internal compiler error: walkexpr: switch 1 unknown op MAKE l(6) tc(1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment