Skip to content

Commit 861996a

Browse files
committed
go/ssa: pass GOEXPERIMENT=aliastypeparams only on Go 1.23
On Go 1.24+ the GOEXPERIMENT is enabled by default, and will be removed at tip. Change-Id: Icb499612f459dfb3a6977a747878ca7bd2102f16 Reviewed-on: https://go-review.googlesource.com/c/tools/+/692476 Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Mark Freeman <[email protected]>
1 parent 528efda commit 861996a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/ssa/builder_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,8 +1115,10 @@ func TestGenericAliases(t *testing.T) {
11151115
cmd.Env = append(os.Environ(),
11161116
"GENERICALIASTEST_CHILD=1",
11171117
"GODEBUG=gotypesalias=1",
1118-
"GOEXPERIMENT=aliastypeparams",
11191118
)
1119+
if testenv.Go1Point() == 23 {
1120+
cmd.Env = append(cmd.Env, "GOEXPERIMENT=aliastypeparams")
1121+
}
11201122
out, err := cmd.CombinedOutput()
11211123
if len(out) > 0 {
11221124
t.Logf("out=<<%s>>", out)

0 commit comments

Comments
 (0)