]> Cypherpunks repositories - gostls13.git/commitdiff
go/types: use documented version of gotypesalias GODEBUG
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Sat, 14 Dec 2024 11:03:27 +0000 (11:03 +0000)
committerCherry Mui <cherryyz@google.com>
Thu, 13 Feb 2025 17:03:33 +0000 (09:03 -0800)
This way the code would panic, in case it does not exist.

Change-Id: I95de7460c0386afdc5d3f6a847e9fcbd22446010
GitHub-Last-Rev: 9ae0502a091feed45169f5c1a7e2761f8ffa2841
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>
src/go/types/eval_test.go

index 49d901f6924b69e81e4d071536904c195c5170bf..f7f0da0db9573715c8ebd1a2666eea2c650db7fc 100644 (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) {