src/reflect/export_swiss_test.go
raw| 1 | // Copyright 2024 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 | //go:build goexperiment.swissmap |
| 6 | |
| 7 | package reflect |
| 8 | |
| 9 | func MapGroupOf(x, y Type) Type { |
| 10 | grp, _ := groupAndSlotOf(x, y) |
| 11 | return grp |
| 12 | } |