Hello,
I'm trying to figure out why foo(Bar) is the only one of these function
calls that fails. It seems like foo(Foo) should to?
package main
type N string
const Foo = "foo"
const Bar = string("bar")
const Baz = N("baz")
func main() {
foo(Foo)
foo(Bar)
foo(Baz)
}
func foo(n N) {
}
I'm sure there must be an explanation for this in the documentation but I
cannot seem to find it.
Thanks!
- Greg
--
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.