]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/types2/issues_test.go
go/types, types2: implement Alias proposal (export API)
[gostls13.git] / src / cmd / compile / internal / types2 / issues_test.go
index a66e8eab929ea936efbd432dfab571929ca6ef4a..95b9f940784da4481680009b31c24c45e42ae7e2 100644 (file)
@@ -989,9 +989,8 @@ type A = []int
 type S struct{ A }
 `
 
-       var conf Config
-       *boolFieldAddr(&conf, "_EnableAlias") = true
-       pkg := mustTypecheck(src, &conf, nil)
+       t.Setenv("GODEBUG", "gotypesalias=1")
+       pkg := mustTypecheck(src, nil, nil)
 
        S := pkg.Scope().Lookup("S")
        if S == nil {