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 7package main 8 9import "reflect" 10 11func main() {} 12 13func typ(x interface{}) reflect.Type { return reflect.ValueOf(x).Type() } 14 15var 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})) 21