blob: a723b8a0da2c8cd4d3e34bde44d2f9b979fca357 [file] [log] [blame]
package issue73594
// Regression test for sanity-check failure caused by not clearing
// Function.subst after building a body-less instantiated function.
type genericType[T any] struct{}
func (genericType[T]) methodWithoutBody()
func callMethodWithoutBody() {
msg := &genericType[int]{}
msg.methodWithoutBody()
}