]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/types2: enable Alias types for TestStdlib
authorRobert Griesemer <gri@golang.org>
Thu, 30 May 2024 00:35:52 +0000 (17:35 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 30 May 2024 19:18:33 +0000 (19:18 +0000)
This is expected to eliminate a potential race condition
which is causing a flaky test.

Fixes #67260.

Change-Id: I3fd76047136e2d4659a1c551491e371b67e8a7ce
Reviewed-on: https://go-review.googlesource.com/c/go/+/589236
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/cmd/compile/internal/types2/stdlib_test.go

index 405af78572bbab0fcbac47de6927e49c0801131a..ed79b92c46a121b06b27a02cea5f3306330993c5 100644 (file)
@@ -396,7 +396,8 @@ func typecheckFiles(path string, filenames []string, importer Importer) (*Packag
                Error: func(err error) {
                        errs = append(errs, err)
                },
-               Importer: importer,
+               Importer:    importer,
+               EnableAlias: true,
        }
        info := Info{Uses: make(map[*syntax.Name]Object)}
        pkg, _ := conf.Check(path, files, &info)