golang/go

x/tools/gopls: stubmethods: nil deref of FuncType.Results in fromReturnStmt

Closed this issue · 3 comments

I think this was fixed in passing by https://go.dev/cl/623156 which changed it to:

	rets := sig.Results()
	// The return operands and function results must match.
	// (Spread returns were rejected earlier.)
	if rets.Len() != len(ret.Results) {
		return nil, fmt.Errorf("%d-operand return statement in %d-result function",
			len(ret.Results),
			rets.Len())
	}

Presumed fixed, closing.