You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Btw: the square brackets syntax seems much easier to read than the repeated rounded brackets used in the examples before. Dropping type seems logical and further reduces cognitive load. Playground2 gofmt still adds the type back in, hope this can be dropped in the future.
The text was updated successfully, but these errors were encountered:
This is confusion as to whether your config.go2 file is using square brackets or parentheses. We'll get this fixed at some point. In the meantime use go tool go2go -brackets.
Are you on the tip of the dev.go2go branch? If you are, show me a complete test case. With the test case I created based on the fragments you showed above, adding -brackets fixed the problem.
Are you on the tip of the dev.go2go branch? If you are, show me a complete test case. With the test case I created based on the fragments you showed above, adding -brackets fixed the problem.
❯ go2 version
go version devel +12c2128b9e Fri Aug 21 00:12:31 2020 +0000 darwin/amd64
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This may likely not be supported yet, but I'm trying to declare a generic in one package and use it from another:
registry.go2:
and
config.go2:
What did you expect to see?
Transpile the consuming side without error.
What did you see instead?
After registry.go2 is transpiled, config.go2 transpiling fails:
Having everything in a single playground file works fine: https://go2goplay.golang.org/p/OAJT9nCTv0u
Btw: the square brackets syntax seems much easier to read than the repeated rounded brackets used in the examples before. Dropping type seems logical and further reduces cognitive load. Playground2
gofmt
still adds thetype
back in, hope this can be dropped in the future.The text was updated successfully, but these errors were encountered: