Debian Codegraph @

test/typeparam/issue42758.go

raw
1 // run
2
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.
6
7 package main
8
9 func F[T, U int]() interface{} {
10 switch interface{}(nil) {
11 case int(0), T(0), U(0):
12 }
13
14 return map[interface{}]int{int(0): 0, T(0): 0, U(0): 0}
15 }
16
17 func main() {
18 F[int, int]()
19 }