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

@tdakkota tdakkota commented Jun 27, 2020

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

@ianlancetaylor ianlancetaylor commented Jun 27, 2020

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

@tdakkota tdakkota commented Jun 27, 2020

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

@tdakkota
Copy link
Author

@tdakkota tdakkota commented Jun 27, 2020

Seems already fixed. Closing.

@tdakkota tdakkota closed this Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.