Source file test/fixedbugs/issue47068.dir/b.go

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package b
     6  
     7  import "reflect"
     8  
     9  func B() {
    10  	t1 := reflect.TypeOf([30]int{})
    11  	t2 := reflect.TypeOf(new([30]int)).Elem()
    12  	if t1 != t2 {
    13  		panic("[30]int types do not match")
    14  	}
    15  }
    16  

View as plain text