// Copyright 2020 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 Len[T any](s []T) int { | |
return len(s) | |
} | |
func F1(s []int) int { | |
return Len(s) | |
} | |
func main() { | |
got := F1(nil) + F2(nil) | |
if got != 0 { | |
panic(got) | |
} | |
} |