Debian Codegraph @

internal/gcimporter/testdata/genmeth/b.go

raw
1 // Copyright 2026 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 "./a"
8
9 func _() {
10 var ex func(int) a.List[int]
11 var fl func(a.List[int]) a.List[int]
12
13 var l a.List[int]
14 l = l.Map(ex).FlatMap(fl)
15
16 var bl a.BiList[int, any]
17 bl = bl.MapKeys(ex).Flip().FlatMapValues(fl).Flip()
18
19 var id func(int) int
20
21 var op a.Option[int]
22 var _ int = op.MapIfPresent(id).Get()
23
24 var ol a.OrderedList[int]
25 var _ int = ol.Min().Get()
26
27 var b a.Box[int]
28 b.Set(42)
29 var _ int = b.Get()
30 }