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

     1  // Copyright 2019 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([0]byte{})
    11  	t2 := reflect.TypeOf(new([0]byte)).Elem()
    12  	if t1 != t2 {
    13  		panic("[0]byte types do not match")
    14  	}
    15  }
    16  

View as plain text