Skip to content

Commit b36d1d1

Browse files
cixtorgopherbot
authored andcommitted
internal/pkgbits: sync version.go with goroot
Change-Id: I11d8791a51d7ad5f7d21e71656b3044f5dcd8c8b Reviewed-on: https://go-review.googlesource.com/c/tools/+/763122 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Mark Freeman <markfreeman@google.com> Reviewed-by: Robert Griesemer <gri@google.com>
1 parent d71d09e commit b36d1d1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

internal/pkgbits/version.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ const (
3434
// - a negative struct field index indicates an embedded field
3535
V3
3636

37+
// V4: encodes generic methods as standalone function objects
38+
V4
39+
3740
numVersions = iota
3841
)
3942

@@ -70,6 +73,9 @@ const (
7073
// Composite literals use a more compact format for element lists.
7174
CompactCompLiterals
7275

76+
// Generic methods may appear as standalone function objects.
77+
GenericMethods
78+
7379
numFields = iota
7480
)
7581

@@ -78,6 +84,7 @@ var introduced = [numFields]Version{
7884
Flags: V1,
7985
AliasTypeParamNames: V2,
8086
CompactCompLiterals: V3,
87+
GenericMethods: V4,
8188
}
8289

8390
// removed is the version a field was removed in or 0 for fields

0 commit comments

Comments
 (0)