This modified example from another thread does not compile: package main
import ( "fmt" ) type T int func main() { var v T type T *T var w T w = &v *w = v fmt.Printf("%T %T\n", v, w) } https://play.golang.org/p/3wos23oim0I The compiler says prog.go:13:4: cannot use &v (type *T) as type T in assignment prog.go:14:5: cannot use v (type T) as type T in assignment It seems like a bug to me, but I want to consult here before reporting a new issue. -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.