Skip to content

x/tools/internal/refactor/inline: internal error "unexpected context *ast.ReturnStmt for spread call" #63398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adonovan opened this issue Oct 5, 2023 · 1 comment
Assignees
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@adonovan
Copy link
Member

adonovan commented Oct 5, 2023

(golang.org/x/tools at ee20ddf)

import "net/http"

func _(cli *http.Client) (*http.Response, error) {
	return http.Get("hi") // inline: internal error: "unexpected context *ast.ReturnStmt for spread call"
}
@adonovan adonovan self-assigned this Oct 5, 2023
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Oct 5, 2023
@gopherbot gopherbot added this to the Unreleased milestone Oct 5, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/533176 mentions this issue: internal/refactor/inline: add missing spread context (return)

@golang golang locked and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

2 participants