From 470d1462765a88ce90802eaf2898924ab0e6f123 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 6 Oct 2022 14:55:48 -0700 Subject: [PATCH] internal/types/errors: rename UntypedNil to UntypedNilUse This avoids a conflict when dot-importing this package in go/types and types2. Change-Id: Ia6fc45ef21c28ea595b49f5321b5c0d441763e2b Reviewed-on: https://go-review.googlesource.com/c/go/+/439562 Reviewed-by: Robert Griesemer TryBot-Result: Gopher Robot Run-TryBot: Robert Griesemer Reviewed-by: Robert Findley Auto-Submit: Robert Griesemer --- src/internal/types/errors/codes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/types/errors/codes.go b/src/internal/types/errors/codes.go index cdb6c5a990..a09b590352 100644 --- a/src/internal/types/errors/codes.go +++ b/src/internal/types/errors/codes.go @@ -138,12 +138,12 @@ const ( // const c *int = 4 InvalidConstType - // UntypedNil occurs when the predeclared (untyped) value nil is used to + // UntypedNilUse occurs when the predeclared (untyped) value nil is used to // initialize a variable declared without an explicit type. // // Example: // var x = nil - UntypedNil + UntypedNilUse // WrongAssignCount occurs when the number of values on the right-hand side // of an assignment or initialization expression does not match the number -- 2.50.0