Source file test/fixedbugs/issue74935.go

     1  // run
     2  
     3  // Copyright 2025 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  type W struct {
    12  	E struct{}
    13  	X *byte
    14  }
    15  
    16  func main() {
    17  	w := reflect.ValueOf(W{})
    18  	_ = w.Field(0).Interface()
    19  }
    20  

View as plain text