From f7becfc7f1e514ee658eae3997ae09cab9edb123 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Sat, 14 Dec 2024 11:03:27 +0000 Subject: [PATCH] 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: 9ae0502a091feed45169f5c1a7e2761f8ffa2841 GitHub-Pull-Request: golang/go#70845 Reviewed-on: https://go-review.googlesource.com/c/go/+/636097 LUCI-TryBot-Result: Go LUCI Reviewed-by: Alan Donovan Reviewed-by: Cherry Mui --- src/go/types/eval_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/types/eval_test.go b/src/go/types/eval_test.go index 49d901f692..f7f0da0db9 100644 --- a/src/go/types/eval_test.go +++ b/src/go/types/eval_test.go @@ -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) { -- 2.51.0