]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: fix Hilbert test for stand-alone run
authorRobert Griesemer <gri@golang.org>
Tue, 13 Jun 2023 20:43:21 +0000 (13:43 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 13 Jun 2023 21:00:12 +0000 (21:00 +0000)
commitdac75b66754978a89eeb143e2b7cabb830409fd8
tree7c30d677a99a3ee521cbe10ba1310f2e48c2c29e
parent9efa625d8425fd97381c80c948689c0eb0f76769
go/types, types2: fix Hilbert test for stand-alone run

When run as a stand-alone test (without other tests running before),
the builtin function 'assert' (only available for testing) is missing.
Make sure it's declared.

This change only affects this test, when run stand-alone, as in:

go test -run Hilbert

Fixes #60774.

Change-Id: Ib07d97ba2670b839e8ad11ef50d0e6581bb3d79d
Reviewed-on: https://go-review.googlesource.com/c/go/+/502996
Auto-Submit: Robert Griesemer <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/types2/hilbert_test.go
src/go/types/generate_test.go
src/go/types/hilbert_test.go