Also it would appear that foo("hello") succeeds to. - Greg
On Tuesday, October 2, 2018 at 12:05:04 PM UTC-7, Greg Saylor wrote: > > 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.