go/types: use documented version of gotypesalias GODEBUG

This way the code would panic, in case it does not exist.

Change-Id: I95de7460c0386afdc5d3f6a847e9fcbd22446010
GitHub-Last-Rev: 9ae0502a09
GitHub-Pull-Request: golang/go#70845
Reviewed-on: https://go-review.googlesource.com/c/go/+/636097
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
This commit is contained in:
Mateusz Poliwczak 2024-12-14 11:03:27 +00:00 committed by Cherry Mui
parent fdaac84480
commit f7becfc7f1
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ func TestEvalPos(t *testing.T) {
}
// gotypesalias controls the use of Alias types.
var gotypesalias = godebug.New("#gotypesalias")
var gotypesalias = godebug.New("gotypesalias")
// split splits string s at the first occurrence of s, trimming spaces.
func split(s, sep string) (string, string) {