aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/reference_test.go
diff options
context:
space:
mode:
authorAbhinav Gupta <mail@abhinavg.net>2021-11-27 16:51:55 -0800
committerAbhinav Gupta <mail@abhinavg.net>2021-11-27 16:51:55 -0800
commitfe308ea0d0ff6c31f2a218f8b47d8ace124ea679 (patch)
tree2439ef882d553ab0bec10e1cbb81aa2d4a5bbf06 /plumbing/reference_test.go
parente4fcd078d42e945581616855ab78d8b7ed12df6c (diff)
downloadgo-git-fe308ea0d0ff6c31f2a218f8b47d8ace124ea679.tar.gz
packp: Actions should have type Action
Per the [Go Spec](https://go.dev/ref/spec#Constant_declarations), the following yields the type `Action` for `Bar` and `Baz` only if there is no `=`. const ( Foo Action = ... Bar Baz ) The following has the type `Action` for the first item, but not the rest. Those are untyped constants of the corresponding type. const ( Foo Action = ... Bar = ... Baz = ... ) This means that `packp.{Update, Delete, Invalid}` are currently untyped string constants, and not `Action` constants as was intended here. This change fixes these.
Diffstat (limited to 'plumbing/reference_test.go')
0 files changed, 0 insertions, 0 deletions