From: Robert Griesemer Date: Thu, 6 Oct 2022 21:55:48 +0000 (-0700) Subject: internal/types/errors: rename UntypedNil to UntypedNilUse X-Git-Tag: go1.20rc1~693 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=470d1462765a88ce90802eaf2898924ab0e6f123;p=gostls13.git 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 --- 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