Files

13 lines
309 B
Go
Raw Permalink Normal View History

2025-02-14 12:42:07 +07:00
// errorcheck
2024-09-21 23:49:08 +10:00
// Copyright 2024 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.
2025-02-14 12:42:07 +07:00
package main
2024-09-21 23:49:08 +10:00
2025-02-14 12:42:07 +07:00
func f[S any, T any](T) {}
func g() {
f(0) // ERROR "in call to f, cannot infer S \(declared at issue68292.go:9:8\)"
2024-09-21 23:49:08 +10:00
}