blob: 31c5dd4b07a1b4d5db2f95a26b62aa10c01f9e98 [file]
// build
// Copyright 2026 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
type someType struct{}
type someTypeAlias = *someType
//go:noinline
func (tm someTypeAlias) FailedLink[T any](v T) {
println(v)
}
//go:noinline
func (tm *someType) SuccessLink[T any](v T) {
println(v)
}
func main() {
var value someType
value.SuccessLink(42)
value.FailedLink(42)
}