Debian Codegraph @

test/fixedbugs/issue52128.dir/a.go

raw
1 // Copyright 2022 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 a
6
7 type I interface{}
8
9 type F func()
10
11 type s struct {
12 f F
13 }
14
15 func NewWithF(f F) *s {
16 return &s{f: f}
17 }
18
19 func NewWithFuncI(func() I) *s {
20 return &s{}
21 }