Debian Codegraph @

test/fixedbugs/issue54307.go

raw
1 // compile
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 p
8
9 func f[Int int, Uint uint]() {
10 _ = uint(Int(-1))
11 _ = uint(Uint(0) - 1)
12 }
13
14 func g[String string]() {
15 _ = String("")[100]
16 }
17
18 var _ = f[int, uint]
19 var _ = g[string]