Hi,

Is this expected? 

import "list" // for 'std' list.go2

func main() {
type intElement list.Element(int)
_ = make(map[int]intElement) // ok: compiles

// nok
_ = make(map[int]list.Element(int)) // cannot use generic type 
list.Element(type TElem) without instantiation
}

I don't think it is, but in case it is, how would I instantiate a 
make(map[int]intElement) 
without having to typedef a generic type before.

PS: i'm using the latest commit at the time of writing in the dev.go2go 
branch (6cf6bf162c)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/45d75d8c-c424-4520-a24f-8cee64b63f88o%40googlegroups.com.

Reply via email to