| 1 |
// run |
| 2 |
|
| 3 |
// Copyright 2019 The Go Authors. All rights reserved. |
| 4 |
// Use of this source code is governed by a BSD-style |
| 5 |
// license that can be found in the LICENSE file. |
| 6 |
|
| 7 |
package main |
| 8 |
|
| 9 |
import "reflect" |
| 10 |
|
| 11 |
func main() {} |
| 12 |
|
| 13 |
func typ(x interface{}) reflect.Type { return reflect.ValueOf(x).Type() } |
| 14 |
|
| 15 |
var x = reflect.New(reflect.StructOf([]reflect.StructField{ |
| 16 |
{Name: "F5", Type: reflect.StructOf([]reflect.StructField{ |
| 17 |
{Name: "F4", Type: reflect.ArrayOf(5462, |
| 18 |
reflect.SliceOf(typ(uint64(0))))}, |
| 19 |
})}, |
| 20 |
})) |