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: gofmt doesn't work #41079
Comments
I can't recreate this problem at dev.go2go revision af1adc5. Can you a complete test case? Thanks. |
I changed the subject because the problem happens with gofmt. If I put everything into one .go2 file, there is no problem. But, builder.go2:
builder_test.go2:
Then
|
Change https://golang.org/cl/251278 mentions this issue: |
Thanks, this should be fixed now on the dev.go2go branch. |
Fixes #41079 Change-Id: I781c5c681c66712ed2ac0112dd44fa8793845978 Reviewed-on: https://go-review.googlesource.com/c/go/+/251278 Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
@ianlancetaylor Thanks for the fix. It works now. |
go2 version:
Thanks for fixing gofmt, but another problem.
I declare
Builder
as following:With this declaration, I can compile and run the following code:
However, after gofmt which deletes
type
from theBuilder
declaration as following:Then the testing code above will not be compiled:
Line 6 is
var builder Builder[int]
in the above testing code.The text was updated successfully, but these errors were encountered: