]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] cmd/compile: enable parsing of generic code with new -G flag
authorRobert Griesemer <gri@golang.org>
Mon, 12 Oct 2020 23:19:49 +0000 (16:19 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 13 Oct 2020 04:48:43 +0000 (04:48 +0000)
commit48755e06aa2ed6ec977efc6df976bcc375a2e6f2
tree0b95f142c7a1f99fb7403220761b48bf93a7d4dd
parent7668f02dec44690ee61722f08b2d80b5b0c5eccd
[dev.typeparams] cmd/compile: enable parsing of generic code with new -G flag

Providing the -G flag instructs the compiler to accept type parameters.
For now, the compiler only parses such files and then exits.

Added a new test directory (test/typeparam) and initial test case.

Port from dev.go2go branch.

Change-Id: Ic11e33a9d5f012f8def0bdae205043659562ac73
Reviewed-on: https://go-review.googlesource.com/c/go/+/261660
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/noder.go
test/run.go
test/typeparam/smoketest.go [new file with mode: 0644]