On Thu, May 10, 2018 at 1:00 PM roger peppe <rogpe...@gmail.com> wrote:



> "The scope of a type identifier declared inside a function begins at
> the identifier in the TypeSpec and ends at the end of the innermost
> containing block."

That's it, thanks. Got bitten by the difference wrt variable decls within a
fn. Those are visible only after the var decl. It shows I'm not using type
declarations inside a fn very often ;-)


-- 

-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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to