]> Cypherpunks repositories - gostls13.git/commitdiff
internal/types/errors: rename UntypedNil to UntypedNilUse
authorRobert Griesemer <gri@golang.org>
Thu, 6 Oct 2022 21:55:48 +0000 (14:55 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 10 Oct 2022 15:21:11 +0000 (15:21 +0000)
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 <gri@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>

src/internal/types/errors/codes.go

index cdb6c5a99048ede2354b67b6d3b7c8cf32e79896..a09b5903522553f6fb6e3443e5e958a2cb1a5331 100644 (file)
@@ -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