I have the following definied in package a
type T1 {
a t1
}
type T2 {
b T1
}
In a package b I do the following
type newt1 a.T1
type newt2 a.T2
func foo() {
x newt1
y newt2
x.b = y
}
Compiler does not allow this, aren't they essentially all the same? What is
the reason this is not allowed?
Thanks
Rajesh.
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.