Skip to content
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

cmd/go2go: no checking for missing function body #39888

Closed
tdakkota opened this issue Jun 27, 2020 · 3 comments
Closed

cmd/go2go: no checking for missing function body #39888

tdakkota opened this issue Jun 27, 2020 · 3 comments

Comments

@tdakkota
Copy link

What version of Go are you using (go version)?

$ go version
go version devel +4dfbf5ab9c Thu Jun 25 02:57:14 2020 +0000 windows/amd64

Does this issue reproduce with the latest release?

n/a

What operating system and processor architecture are you using (go env)?

n/a

What did you do?

https://go2goplay.golang.org/p/tSna2j-6Epe

What did you expect to see?

Something like

./prog.go:3:6: missing function body

What did you see instead?

Successful compilation.

@ianlancetaylor
Copy link
Contributor

What command are you running?

This is what I see:

> go tool go2go run ~/foo.go2
# command-line-arguments
./foo.go2:3: missing function body
/home/iant/gogen/bin/go [run foo.go] failed: exit status 2

@tdakkota
Copy link
Author

I ran
$ go run cmd/go2go translate ./issue.go2

@tdakkota
Copy link
Author

Seems already fixed. Closing.

@golang golang locked and limited conversation to collaborators Jun 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants