go issue53635 源码
golang issue53635 代码
文件路径:/test/fixedbugs/issue53635.go
// run
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
func main() {
	f[int]()
}
func f[T any]() {
	switch []T(nil) {
	case nil:
	default:
		panic("FAIL")
	}
	switch (func() T)(nil) {
	case nil:
	default:
		panic("FAIL")
	}
	switch (map[int]T)(nil) {
	case nil:
	default:
		panic("FAIL")
	}
}
相关信息
相关文章
                        
                            0
                        
                        
                             赞
                        
                    
                    
                热门推荐
- 
                        2、 - 优质文章
 - 
                        3、 gate.io
 - 
                        7、 openharmony
 - 
                        9、 golang