fix: support array operations on array pointers

This commit is contained in:
Marc Vertes
2019-09-18 23:32:04 +02:00
committed by Traefiker Bot
parent e03016b6d7
commit ec1ee5f5b6
8 changed files with 122 additions and 12 deletions

11
_test/ptr_array3.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import "fmt"
func main() {
a := &[...]int{1, 2, 3}
fmt.Println(a[:])
}
// Output:
// [1 2 3]