-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Closed
Labels
Milestone
Description
by Nick.Desaulniers:
What steps will reproduce the problem? 1. create a slice 2. create a pointer to the slice 3. append a value to the slice 4. access the pointer using square brackets What is the expected output? the appended value What do you see instead? invalid operation Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Mac OSX Which version are you using? (run 'go version') go version go1.0.3 Please provide any additional information below. Methods auto dereference pointers, why not square brackets?