- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for gc2 (0.08 sec)
-
test/gc2.go
Dmitri Shuralyov <******@****.***> 1697569678 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 977 bytes - Viewed (0) -
test/typeparam/combine.go
var g3 Gen[string] = func() (string, bool) { return "y", true } gc := Combine(g1, g2, _NewPair[int, string]) if got, ok := gc(); ok { panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok)) } gc2 := Combine2(g1, g2) if got, ok := gc2(); ok { panic(fmt.Sprintf("got %v, %v, wanted -/false", got, ok)) } gc3 := Combine(g1, g3, _NewPair[int, string]) if got, ok := gc3(); !ok || got.A != 3 || got.B != "y" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.5K bytes - Viewed (0)