fix: support array operations on array pointers
This commit is contained in:
committed by
Traefiker Bot
parent
e03016b6d7
commit
ec1ee5f5b6
11
_test/ptr_array3.go
Normal file
11
_test/ptr_array3.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
a := &[...]int{1, 2, 3}
|
||||
fmt.Println(a[:])
|
||||
}
|
||||
|
||||
// Output:
|
||||
// [1 2 3]
|
||||
Reference in New Issue
Block a user