3 // Copyright 2022 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 func f[T comparable](i any) {
16 println("FAIL: switch i")
23 println("FAIL: switch t")
29 func (m myint) foo() {
32 type fooer interface {
36 type comparableFoo interface {
41 func g[T comparableFoo](i fooer) {
48 println("FAIL: switch i")
55 println("FAIL: switch t")