Thanks Ian and Jan, I see my error now. On Thursday, May 4, 2017 at 2:27:55 PM UTC+2, Ian Lance Taylor wrote: > > On Thu, May 4, 2017 at 5:22 AM, Alberto Cortes <albe...@sourced.tech> > wrote: > > I'm sorry Jan, I still don't understand why the type of `a` is > `main.go`. > > I don't see `main.go`. I see `main.foo`. And that seems right to me. > The constant has the type `foo` in the `main` package. > > As Jan says, for `int` you see plain `int`, not `main.int`, because > `int` is not defined within the package. > > Ian > > > On Thursday, May 4, 2017 at 2:03:06 PM UTC+2, Jan Mercl wrote: > >> > >> On Thu, May 4, 2017 at 1:54 PM <albe...@sourced.tech> wrote: > >> > >> > Can you help me explain this behaviour? > >> > >> The universe scope is not a package. > >> > >> -- > >> > >> -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...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/d/optout. >
-- 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.