Skip to content

Commit 209ed1a

Browse files
committed
cmd/compile/internal/importer: enable aliases
Flips the pkgReader.enableAlias flag to true when reading unified IR. This was disabled while resolving #66873. This resolves the TODO to flip it back to true. Updates #66873 Updates #68778 Change-Id: Ifd52b0f9510d6bcf151de1c9a18d71ab548c14e4 Reviewed-on: https://go-review.googlesource.com/c/go/+/604099 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
1 parent f7cdada commit 209ed1a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/cmd/compile/internal/importer/ureader.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ func ReadPackage(ctxt *types2.Context, imports map[string]*types2.Package, input
2828
pr := pkgReader{
2929
PkgDecoder: input,
3030

31-
ctxt: ctxt,
32-
imports: imports,
33-
// Currently, the compiler panics when using Alias types.
34-
// TODO(gri) set to true once this is fixed (issue #66873)
35-
enableAlias: false,
31+
ctxt: ctxt,
32+
imports: imports,
33+
enableAlias: true,
3634

3735
posBases: make([]*syntax.PosBase, input.NumElems(pkgbits.RelocPosBase)),
3836
pkgs: make([]*types2.Package, input.NumElems(pkgbits.RelocPkg)),

0 commit comments

Comments
 (0)