Source file test/fixedbugs/issue78295.go
1 // run 2 3 // Copyright 2026 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 type B *struct{ A } 10 type A interface{ m(B) } 11 12 type s struct{} 13 14 func (s) m(b B) {} 15 16 func main() { 17 var b B = new(struct{ A }) 18 b.A = s{} 19 (*b).m(b) 20 } 21