3 // Copyright 2023 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
9 type S[T comparable] struct {
13 func (s S[T]) M1(node T) {
14 defer delete(s.m, node)
17 func (s S[T]) M2(node T) {
23 func (s S[T]) M3(node T) {
28 func f[T comparable](map[T]T, T) {}