]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/dist: add tests using the typeparams build tag
authorRob Findley <rfindley@google.com>
Wed, 14 Apr 2021 14:52:30 +0000 (10:52 -0400)
committerRobert Findley <rfindley@google.com>
Wed, 14 Apr 2021 19:32:56 +0000 (19:32 +0000)
commit283f9fdbd340a5f3c1b27fd10730986b35e57c89
treef5e8a09bfc0ae5fc944483a0eee1462031982e42
parentbcbde83c200a7abb2b23666b59992265f3cf3621
cmd/dist: add tests using the typeparams build tag

Now that go/ast changes have been guarded behind the typeparams build
tag, we no longer have coverage for tests involving generic code.

Add a new testing step to cmd/dist to run go/... and cmd/gofmt tests
using -tags=typeparams.

Comment out parser object resolution assertions that currently fail, and
which will be fixed by CL 304456.

Fixes #44933

Change-Id: I481dd4246a016f410307865b6c6c2bb3c8e6e3bc
Reviewed-on: https://go-review.googlesource.com/c/go/+/310071
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/dist/test.go
src/go/parser/testdata/resolution/typeparams.go2