]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/go/types/errorcodes.go
[dev.typeparams] merge master (2f0da6d) into dev.typeparams
[gostls13.git] / src / go / types / errorcodes.go
index 2837019bf5ec39dd56b77a23c634e7aadec4353f..1e39aed07d619cc59b5a8dcbe5d6022f95a515de 100644 (file)
@@ -6,6 +6,9 @@ package types
 
 type errorCode int
 
+// TODO(rFindley): ensure that existing error codes do not change in the
+//                 dev.typeparams branch.
+
 // This file defines the error codes that can be produced during type-checking.
 // Collectively, these codes provide an identifier that may be used to
 // implement special handling for certain types of errors.
@@ -1315,6 +1318,9 @@ const (
        //  }
        _InvalidGo
 
+       // _BadDecl occurs when a declaration has invalid syntax.
+       _BadDecl
+
        // _Todo is a placeholder for error codes that have not been decided.
        // TODO(rFindley) remove this error code after deciding on errors for generics code.
        _Todo