Created
May 14, 2013 23:18
-
-
Save eikenb/5580500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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)