Closed OneOfOne closed 3 years ago
@gopherbot, please add labels go2
I don't think actual, current issues in the dev.typeparams branch need to be labelled as Go2
, that's mostly used for broad language changes and stuff like that (for reference: https://github.com/golang/go/issues?q=is%3Aissue+dev.typeparams none of these has the label).
I'm removing it, if you don't mind.
cc @griesemer
This (-G -G
or -G=2
) is not expected to work at this point; the respective code doesn't exist yet and is work in progress.
@griesemer is there any way to compile go2 code with that branch?
@OneOfOne It's work in progress. The branch is there to develop the ability to compile code that uses type parameters. Until that work is done, the code on the branch won't work. That's why it's on a branch.
@OneOfOne What @ianlancetaylor said. You can type-check go2 code with a single -G
option (or -G=1
) for now.
What version of Go are you using (
go version
)?What did you do?
Source: https://go2goplay.golang.org/p/1qkRFfQNDNz
What did you expect to see?
A successful compile or at least no panics since it works on
dev.go2go
and the go2 playground.What did you see instead?