Files
yaegi/_test/ptr_array2.go
T

17 lines
143 B
Go

package main
import "fmt"
type T [2]int
func F1(t *T) { t[0] = 1 }
func main() {
t := &T{}
F1(t)
fmt.Println(t)
}
// Output:
// &[1 0]