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