Source file test/fixedbugs/issue52279.dir/lib.go
1 package lib 2 3 type FMap[K comparable, V comparable] map[K]V 4 5 //go:noinline 6 func (m FMap[K, V]) Flip() FMap[V, K] { 7 out := make(FMap[V, K]) 8 return out 9 } 10 11 type MyType uint8 12 13 const ( 14 FIRST MyType = 0 15 ) 16 17 var typeStrs = FMap[MyType, string]{ 18 FIRST: "FIRST", 19 } 20 21 func (self MyType) String() string { 22 return typeStrs[self] 23 } 24