| 1 | package issue73594 |
| 2 | |
| 3 | // Regression test for sanity-check failure caused by not clearing |
| 4 | // Function.subst after building a body-less instantiated function. |
| 5 | |
| 6 | type genericType[T any] struct{} |
| 7 | |
| 8 | func (genericType[T]) methodWithoutBody() |
| 9 | |
| 10 | func callMethodWithoutBody() { |
| 11 | msg := &genericType[int]{} |
| 12 | msg.methodWithoutBody() |
| 13 | } |